Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf

https://codereview.chromium.org/2870263002
This commit is contained in:
Aleksei Kuzmin 2017-09-10 16:29:05 +02:00 committed by Cheng Zhao
parent 485e43636b
commit 79e59a88b4

View file

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