diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-06-24 16:12:08 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-06-27 08:56:46 +0100 |
commit | ab0b8a95ef9ede3d41289593b8fbf68800ff9278 (patch) | |
tree | 01907ee5925bdd54db6fa8b7d2a0d9b0b001dd92 | |
parent | 3c440aad56cdaf3e0c05af6c7967a3d15b183034 (diff) |
fix comment and tiny optimisation for shutdown.
Change-Id: I94e0f55f7fc38529a9ab165786efaf7ac649a9d3
-rw-r--r-- | cppu/source/typelib/typelib.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx index 583b73733f9a..85335784929a 100644 --- a/cppu/source/typelib/typelib.cxx +++ b/cppu/source/typelib/typelib.cxx @@ -270,7 +270,9 @@ TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl() if( pWeakMap ) { std::vector< typelib_TypeDescriptionReference * > ppTDR; - // save al weak references + ppTDR.reserve( pWeakMap->size() ); + + // save all weak references WeakMap_Impl::const_iterator aIt = pWeakMap->begin(); while( aIt != pWeakMap->end() ) { |