Kaydet (Commit) fd0790a2 authored tarafından Catalin Iacob's avatar Catalin Iacob Kaydeden (comit) Stephan Bergmann

WaE: Clang unused variable

üst 5708f2bf
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "cppu/EnvDcp.hxx" #include "cppu/EnvDcp.hxx"
#include "sal/alloca.h" #include "sal/alloca.h"
#include "sal/log.hxx"
#include "osl/diagnose.h" #include "osl/diagnose.h"
#include "osl/interlck.h" #include "osl/interlck.h"
#include "osl/mutex.hxx" #include "osl/mutex.hxx"
...@@ -987,11 +988,10 @@ inline void EnvironmentsData::registerEnvironment( uno_Environment ** ppEnv ) ...@@ -987,11 +988,10 @@ inline void EnvironmentsData::registerEnvironment( uno_Environment ** ppEnv )
if (iFind == aName2EnvMap.end()) if (iFind == aName2EnvMap.end())
{ {
(*pEnv->acquireWeak)( pEnv ); (*pEnv->acquireWeak)( pEnv );
::std::pair< OUString2EnvironmentMap::iterator, bool > insertion( ::std::pair< OUString2EnvironmentMap::iterator, bool > insertion (
aName2EnvMap.insert( aName2EnvMap.insert(
OUString2EnvironmentMap::value_type( aKey, pEnv ) ) ); OUString2EnvironmentMap::value_type( aKey, pEnv ) ) );
OSL_ENSURE( SAL_WARN_IF( !insertion.second, "cppu", "key " << aKey << " already in env map" );
insertion.second, "### insertion of env into map failed?!" );
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment