mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf
https://codereview.chromium.org/2870263002
This commit is contained in:
committed by
Cheng Zhao
parent
485e43636b
commit
79e59a88b4
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user