diff options
author | Catalin Iacob <iacobcatalin@gmail.com> | 2012-03-25 17:23:22 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-04-25 10:07:00 +0200 |
commit | fd0790a219041d1cc62ea1a5417d90e0df206662 (patch) | |
tree | 22cd6046f4cbad565d0fb6806c0d51559e5c9e82 /cppu | |
parent | 5708f2bfa70db0479ddbf9b454329cd81e0f509d (diff) |
WaE: Clang unused variable
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/uno/lbenv.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx index 47ca98f3158e..b8a802bec30c 100644 --- a/cppu/source/uno/lbenv.cxx +++ b/cppu/source/uno/lbenv.cxx @@ -30,6 +30,7 @@ #include "cppu/EnvDcp.hxx" #include "sal/alloca.h" +#include "sal/log.hxx" #include "osl/diagnose.h" #include "osl/interlck.h" #include "osl/mutex.hxx" @@ -987,11 +988,10 @@ inline void EnvironmentsData::registerEnvironment( uno_Environment ** ppEnv ) if (iFind == aName2EnvMap.end()) { (*pEnv->acquireWeak)( pEnv ); - ::std::pair< OUString2EnvironmentMap::iterator, bool > insertion( + ::std::pair< OUString2EnvironmentMap::iterator, bool > insertion ( aName2EnvMap.insert( OUString2EnvironmentMap::value_type( aKey, pEnv ) ) ); - OSL_ENSURE( - insertion.second, "### insertion of env into map failed?!" ); + SAL_WARN_IF( !insertion.second, "cppu", "key " << aKey << " already in env map" ); } else { |