diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-14 16:19:46 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-14 16:19:46 +0000 |
commit | 350404e99b174f97f5a74cfa2c2d3827455a38e7 (patch) | |
tree | fd0fcb7ed901b825feca7eb5b3dcf37144c9486c /base/build | |
parent | d82cac3a0e2d86d5429ac6fa237851a769c83a5f (diff) | |
download | chromium_src-350404e99b174f97f5a74cfa2c2d3827455a38e7.zip chromium_src-350404e99b174f97f5a74cfa2c2d3827455a38e7.tar.gz chromium_src-350404e99b174f97f5a74cfa2c2d3827455a38e7.tar.bz2 |
scoped_bstr and StackBstr implementations. The scoped_bstr class is a wrapper around BSTR system calls with some added functionality.
StackBstr is for those times when you need to pass a fixed string to a function but visiting the heap etc to allocate a new BSTR can be avoided.
StackBstr not zero cost, but much cheaper than creating a new BSTR like we currently do in many places.
Review URL: http://codereview.chromium.org/18006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8011 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/build')
-rw-r--r-- | base/build/base.vcproj | 8 | ||||
-rw-r--r-- | base/build/base_unittests.vcproj | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/base/build/base.vcproj b/base/build/base.vcproj index 606d530..b2933fd 100644 --- a/base/build/base.vcproj +++ b/base/build/base.vcproj @@ -686,6 +686,14 @@ > </File> <File + RelativePath="..\scoped_bstr.cc" + > + </File> + <File + RelativePath="..\scoped_bstr.h" + > + </File> + <File RelativePath="..\scoped_clipboard_writer.cc" > </File> diff --git a/base/build/base_unittests.vcproj b/base/build/base_unittests.vcproj index 945c8dd..2642c22 100644 --- a/base/build/base_unittests.vcproj +++ b/base/build/base_unittests.vcproj @@ -284,6 +284,10 @@ > </File> <File + RelativePath="..\scoped_bstr_unittest.cc" + > + </File> + <File RelativePath="..\scoped_comptr_unittest.cc" > </File> |