summaryrefslogtreecommitdiffstats
path: root/scripting/source/stringresource/stringresource.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2015-01-04 19:09:27 +0100
committerJulien Nabet <serval2412@yahoo.fr>2015-01-04 19:11:13 +0100
commit7da92fdcb040d1f82fc2a6c61fd05f76f7344035 (patch)
tree53d1eb844f8f5562482b78a85986a06466496005 /scripting/source/stringresource/stringresource.cxx
parenthelp out clang (diff)
downloadcore-7da92fdcb040d1f82fc2a6c61fd05f76f7344035.tar.gz
core-7da92fdcb040d1f82fc2a6c61fd05f76f7344035.zip
cppcheck: Possible inefficient checking for <var> emptiness
Change-Id: I6ca0e477a4429e762c48c721951b9876db3a5c6c
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r--scripting/source/stringresource/stringresource.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 667a9008d2b6..3a693d2297cc 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -2202,7 +2202,7 @@ bool StringResourcePersistenceImpl::implWritePropertiesFile( LocaleItem* pLocale
xTextOutputStream->writeString( aLineFeedStr );
const IdToStringMap& rHashMap = pLocaleItem->m_aIdToStringMap;
- if( rHashMap.size() > 0 )
+ if( !rHashMap.empty() )
{
// Sort ids according to read order
const IdToIndexMap& rIndexMap = pLocaleItem->m_aIdToIndexMap;