summaryrefslogtreecommitdiff
path: root/cppu/source/typelib
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-06-24 16:12:08 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-06-27 08:56:46 +0100
commitab0b8a95ef9ede3d41289593b8fbf68800ff9278 (patch)
tree01907ee5925bdd54db6fa8b7d2a0d9b0b001dd92 /cppu/source/typelib
parent3c440aad56cdaf3e0c05af6c7967a3d15b183034 (diff)
fix comment and tiny optimisation for shutdown.
Change-Id: I94e0f55f7fc38529a9ab165786efaf7ac649a9d3
Diffstat (limited to 'cppu/source/typelib')
-rw-r--r--cppu/source/typelib/typelib.cxx4
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() )
{