Commit 02950eda authored by robliao's avatar robliao Committed by Commit bot

Rename ScopedComPtr::swap() to ScopedComPtr::Swap()

This renames swap() to Swap() to harmonize with ComPtr::Swap().

BUG=638327
TBR=thestig@chromium.org
Mechanical rename.

Review-Url: https://codereview.chromium.org/2895313002
Cr-Commit-Position: refs/heads/master@{#473991}
parent fb84eb9a
......@@ -181,7 +181,7 @@ class ScopedComPtr {
return details::ScopedComPtrRef<ScopedComPtr<Interface>>(this);
}
void swap(ScopedComPtr<Interface>& r) {
void Swap(ScopedComPtr<Interface>& r) {
Interface* tmp = ptr_;
ptr_ = r.ptr_;
r.ptr_ = tmp;
......
......@@ -553,7 +553,7 @@ HRESULT UpdateCheckDriver::BeginUpdateCheckInternal(
app_bundle->put_parentHWND(
reinterpret_cast<ULONG_PTR>(elevation_window_));
}
app_bundle_.swap(app_bundle);
app_bundle_.Swap(app_bundle);
}
// Get a reference to the Chrome app in the bundle.
......@@ -571,7 +571,7 @@ HRESULT UpdateCheckDriver::BeginUpdateCheckInternal(
// Move the IAppBundleWeb reference into a local now so that failures from
// this point onward result in it being released.
base::win::ScopedComPtr<IAppBundleWeb> app_bundle;
app_bundle.swap(app_bundle_);
app_bundle.Swap(app_bundle_);
hresult = app_bundle->get_appWeb(0, dispatch.GetAddressOf());
if (FAILED(hresult))
return hresult;
......@@ -583,8 +583,8 @@ HRESULT UpdateCheckDriver::BeginUpdateCheckInternal(
hresult = app_bundle->checkForUpdate();
if (FAILED(hresult))
return hresult;
app_bundle_.swap(app_bundle);
app_.swap(app);
app_bundle_.Swap(app_bundle);
app_.Swap(app);
}
return hresult;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment