Browse Source

Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf

https://codereview.chromium.org/2870263002
Aleksei Kuzmin 7 years ago
parent
commit
79e59a88b4
1 changed files with 5 additions and 4 deletions
  1. 5 4
      atom/common/platform_util_win.cc

+ 5 - 4
atom/common/platform_util_win.cc

@@ -243,7 +243,7 @@ bool ShowItemInFolder(const base::FilePath& full_path) {
   }
 
   base::win::ScopedComPtr<IShellFolder> desktop;
-  HRESULT hr = SHGetDesktopFolder(desktop.Receive());
+  HRESULT hr = SHGetDesktopFolder(desktop.GetAddressOf());
   if (FAILED(hr))
     return false;
 
@@ -356,9 +356,10 @@ bool MoveItemToTrash(const base::FilePath& path) {
 
   // Create an IShellItem from the supplied source path.
   base::win::ScopedComPtr<IShellItem> delete_item;
-  if (FAILED(SHCreateItemFromParsingName(path.value().c_str(),
-                                         NULL,
-                                         IID_PPV_ARGS(delete_item.Receive()))))
+  if (FAILED(SHCreateItemFromParsingName(
+      path.value().c_str(),
+      NULL,
+      IID_PPV_ARGS(delete_item.GetAddressOf()))))
     return false;
 
   base::win::ScopedComPtr<IFileOperationProgressSink> delete_sink(