summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/excimp8.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 /sc/source/filter/excel/excimp8.cxx
parent6fd453224fc5fcf9953092d2883ab45417980f48 (diff)
cppcheck: Possible inefficient checking for <var> emptiness
Change-Id: I6ca0e477a4429e762c48c721951b9876db3a5c6c
Diffstat (limited to 'sc/source/filter/excel/excimp8.cxx')
-rw-r--r--sc/source/filter/excel/excimp8.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx
index c1d342ee38dc..ae83bca1e22b 100644
--- a/sc/source/filter/excel/excimp8.cxx
+++ b/sc/source/filter/excel/excimp8.cxx
@@ -126,7 +126,7 @@ public:
virtual sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE
{
::osl::MutexGuard aGuard( m_aMutex );
- return ( IdToOleNameHash.size() > 0 );
+ return ( !IdToOleNameHash.empty() );
}
// XNameAcess
virtual uno::Any SAL_CALL getByName( const OUString& aName ) throw (container::NoSuchElementException, lang::WrappedTargetException, uno::RuntimeException, std::exception) SAL_OVERRIDE