diff options
author | Catalin Iacob <iacobcatalin@gmail.com> | 2012-03-25 17:28:33 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-04-25 10:07:01 +0200 |
commit | 08a38341e0a800cfb643591130afd8984d03fe22 (patch) | |
tree | 39d01aa60e12b4e52caa77b68d8caf7fc5ef6e59 /bridges/source | |
parent | fd0790a219041d1cc62ea1a5417d90e0df206662 (diff) |
WaE: Clang unused variable
Diffstat (limited to 'bridges/source')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx index 8373d14c3687..648a09e1b6c0 100644 --- a/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx +++ b/bridges/source/cpp_uno/gcc3_linux_x86-64/except.cxx @@ -38,6 +38,7 @@ #include <boost/unordered_map.hpp> +#include <sal/log.hxx> #include <rtl/instance.hxx> #include <rtl/strbuf.hxx> #include <rtl/ustrbuf.hxx> @@ -166,9 +167,9 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR if (rtti) { - pair< t_rtti_map::iterator, bool > insertion( + pair< t_rtti_map::iterator, bool > insertion ( m_rttis.insert( t_rtti_map::value_type( unoName, rtti ) ) ); - OSL_ENSURE( insertion.second, "### inserting new rtti failed?!" ); + SAL_WARN_IF( !insertion.second, "bridges", "key " << unoName << " already in rtti map" ); } else { @@ -197,9 +198,9 @@ type_info * RTTI::getRTTI( typelib_CompoundTypeDescription *pTypeDescr ) SAL_THR rtti = new __class_type_info( strdup( rttiName ) ); } - pair< t_rtti_map::iterator, bool > insertion( + pair< t_rtti_map::iterator, bool > insertion ( m_generatedRttis.insert( t_rtti_map::value_type( unoName, rtti ) ) ); - OSL_ENSURE( insertion.second, "### inserting new generated rtti failed?!" ); + SAL_WARN_IF( !insertion.second, "bridges", "key " << unoName << " already in generated rtti map" ); } else // taking already generated rtti { |