diff options
author | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 17:11:00 +0000 |
---|---|---|
committer | sanjeevr@chromium.org <sanjeevr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-18 17:11:00 +0000 |
commit | 38364fd79c17db99541a7ed5fab9e8c253e76949 (patch) | |
tree | c54f8c795eabfdb19318632c00eec9f42b3d83bb /base | |
parent | 2ca8a064a206fba910dc0f50f8a2f2509828d8f1 (diff) | |
download | chromium_src-38364fd79c17db99541a7ed5fab9e8c253e76949.zip chromium_src-38364fd79c17db99541a7ed5fab9e8c253e76949.tar.gz chromium_src-38364fd79c17db99541a7ed5fab9e8c253e76949.tar.bz2 |
Added release() method to ScopedHGlobal.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/1063003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41960 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/scoped_handle_win.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/scoped_handle_win.h b/base/scoped_handle_win.h index ea37ba2..bc62d8e 100644 --- a/base/scoped_handle_win.h +++ b/base/scoped_handle_win.h @@ -220,6 +220,12 @@ class ScopedHGlobal { return data_; } + T* release() { + T* data = data_; + data_ = NULL; + return data; + } + private: HGLOBAL glob_; |