Index: base/scoped_handle_win.h |
=================================================================== |
--- base/scoped_handle_win.h (revision 30814) |
+++ base/scoped_handle_win.h (working copy) |
@@ -168,6 +168,12 @@ |
return *this; |
} |
+ T release() { |
+ T object = object_; |
+ object_ = NULL; |
+ return object; |
+ } |
+ |
operator T() { return object_; } |
private: |
@@ -182,7 +188,7 @@ |
// Typedefs for some common use cases. |
typedef ScopedGDIObject<HBITMAP> ScopedBitmap; |
-typedef ScopedGDIObject<HRGN> ScopedHRGN; |
+typedef ScopedGDIObject<HRGN> ScopedRegion; |
typedef ScopedGDIObject<HFONT> ScopedHFONT; |