summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-07-23 15:18:02 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-07-23 15:18:02 +0200
commita4967e4a7563e1d1bd43d1560ed95b9f6bbf58cd (patch)
tree0e2c0e9218589d4f872ec9f3fcabb9e02627eb78 /stoc
parent682cb83ed59233decbeeaff68c4d871442b58bb1 (diff)
Assertion clean-up
Change-Id: I234c615d9d3386da2b244709add5c029b76d346c
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/invocation_adapterfactory/iafactory.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx
index 72a880acf88a..1a1ab13bec10 100644
--- a/stoc/source/invocation_adapterfactory/iafactory.cxx
+++ b/stoc/source/invocation_adapterfactory/iafactory.cxx
@@ -861,11 +861,10 @@ Reference< XInterface > FactoryImpl::createAdapter(
&adapter_set, m_receiver2adapters, xKey.get(), rTypes );
if (0 == that) // again no entry
{
- pair< t_ptr_set::iterator, bool > insertion(
- adapter_set->insert( pNew ) );
- // Avoid unused variable warning
- (void) insertion;
- OSL_ASSERT( insertion.second );
+ pair< t_ptr_set::iterator, bool > i(adapter_set->insert(pNew));
+ SAL_WARN_IF(
+ !i.second, "stoc",
+ "set already contains " << *(i.first) << " != " << pNew);
that = pNew;
}
else