From 79e59a88b486c556677189d6c5c6a47799ccacd5 Mon Sep 17 00:00:00 2001 From: Aleksei Kuzmin Date: Sun, 10 Sep 2017 16:29:05 +0200 Subject: [PATCH] Rename ScopedComPtr::Receive to ScopedComPtr::GetAddressOf https://codereview.chromium.org/2870263002 --- atom/common/platform_util_win.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/atom/common/platform_util_win.cc b/atom/common/platform_util_win.cc index 20f33e5f8808..f40423883e7b 100644 --- a/atom/common/platform_util_win.cc +++ b/atom/common/platform_util_win.cc @@ -243,7 +243,7 @@ bool ShowItemInFolder(const base::FilePath& full_path) { } base::win::ScopedComPtr 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 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 delete_sink(