Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf
https://codereview.chromium.org/2870263002
This commit is contained in:
parent
485e43636b
commit
79e59a88b4
1 changed files with 5 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue