diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-07-23 22:47:02 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-07-28 09:07:30 +0300 |
commit | eb9d49e605994c08eba249f1af946845dd31b839 (patch) | |
tree | 2f32a95adf214c120cfefac2406296ebf18fd938 /xmloff | |
parent | 542f13cb4ed0662778cd72242894badd2c9337c7 (diff) |
WaE: unused variable
Change-Id: Iad6063f3f064e0d8fa0bf43125ec1d323519389c
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/core/xmlimp.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmloff/source/core/xmlimp.cxx b/xmloff/source/core/xmlimp.cxx index 30e130b8f081..68ddd357b1bd 100644 --- a/xmloff/source/core/xmlimp.cxx +++ b/xmloff/source/core/xmlimp.cxx @@ -1312,7 +1312,9 @@ void SvXMLImport::AddStyleDisplayName( sal_uInt16 nFamily, StyleMap::key_type aKey( nFamily, rName ); StyleMap::value_type aValue( aKey, rDisplayName ); ::std::pair<StyleMap::iterator,bool> aRes( mpStyleMap->insert( aValue ) ); - OSL_ENSURE( aRes.second, "duplicate style name" ); + SAL_WARN_IF( !aRes.second, + "xmloff", + "duplicate style name" ); } |