Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1241)

Unified Diff: remoting/host/win/rdp_client_window.cc

Issue 2792383003: Rename ScopedComPtr::Release() to ScopedComPtr::Reset() (Closed)
Patch Set: Fix New Callers Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/setup/win/auth_code_getter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/rdp_client_window.cc
diff --git a/remoting/host/win/rdp_client_window.cc b/remoting/host/win/rdp_client_window.cc
index 5bcd61d364001a5e098ce1797564fe52b9e06a4b..fc49e96b2935e05c645fd76df82a16e481b06c99 100644
--- a/remoting/host/win/rdp_client_window.cc
+++ b/remoting/host/win/rdp_client_window.cc
@@ -401,9 +401,9 @@ LRESULT RdpClientWindow::OnCreate(CREATESTRUCT* create_struct) {
}
void RdpClientWindow::OnDestroy() {
- client_.Release();
- client_9_.Release();
- client_settings_.Release();
+ client_.Reset();
+ client_9_.Reset();
+ client_settings_.Reset();
apply_resolution_timer_.Stop();
}
@@ -503,9 +503,9 @@ HRESULT RdpClientWindow::OnConfirmClose(VARIANT_BOOL* allow_close) {
int RdpClientWindow::LogOnCreateError(HRESULT error) {
LOG(ERROR) << "RDP: failed to initiate a connection to "
<< server_endpoint_.ToString() << ": error=" << std::hex << error;
- client_.Release();
- client_9_.Release();
- client_settings_.Release();
+ client_.Reset();
+ client_9_.Reset();
+ client_settings_.Reset();
return -1;
}
« no previous file with comments | « remoting/host/setup/win/auth_code_getter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698