Index: base/win/scoped_hdc.h |
diff --git a/base/win/scoped_hdc.h b/base/win/scoped_hdc.h |
index 8b316caa08d9c3339bef7bff32b19471e741d348..1544349d660b03b45c871a923579ad6e29ea377a 100644 |
--- a/base/win/scoped_hdc.h |
+++ b/base/win/scoped_hdc.h |
@@ -40,14 +40,12 @@ class ScopedGetDC { |
// Like ScopedHandle but for HDC. Only use this on HDCs returned from |
// CreateCompatibleDC. |
sanjeevr
2011/10/05 17:34:06
This comment should be CreateCompatibleDC, CreateD
yosin_UTC9
2011/10/06 03:35:35
Done.
|
-// TODO(yosin) To eliminate confusion with ScopedGetDC, we should rename |
-// ScopedHDC to ScopedCreateDC. |
-class ScopedHDC { |
+class ScopedCreateDC { |
public: |
- ScopedHDC() : hdc_(NULL) { } |
- explicit ScopedHDC(HDC h) : hdc_(h) { } |
+ ScopedCreateDC() : hdc_(NULL) { } |
+ explicit ScopedCreateDC(HDC h) : hdc_(h) { } |
- ~ScopedHDC() { |
+ ~ScopedCreateDC() { |
Close(); |
} |
@@ -73,7 +71,7 @@ class ScopedHDC { |
} |
HDC hdc_; |
- DISALLOW_COPY_AND_ASSIGN(ScopedHDC); |
+ DISALLOW_COPY_AND_ASSIGN(ScopedCreateDC); |
}; |
} // namespace win |