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

Unified Diff: remoting/host/disconnect_window_win.cc

Issue 9212020: Make scoped dc objects smarter. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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 | « printing/emf_win_unittest.cc ('k') | ui/gfx/native_theme_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/disconnect_window_win.cc
===================================================================
--- remoting/host/disconnect_window_win.cc (revision 121681)
+++ remoting/host/disconnect_window_win.cc (working copy)
@@ -214,8 +214,8 @@
if (result) {
base::win::ScopedGetDC dc(control);
base::win::ScopedSelectObject font(
- dc, (HFONT)SendMessage(control, WM_GETFONT, 0, 0));
- DrawText(dc, text, -1, &rect, DT_CALCRECT|DT_SINGLELINE);
+ dc.get(), (HFONT)SendMessage(control, WM_GETFONT, 0, 0));
+ DrawText(dc.get(), text, -1, &rect, DT_CALCRECT|DT_SINGLELINE);
}
return rect.right;
}
« no previous file with comments | « printing/emf_win_unittest.cc ('k') | ui/gfx/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698