diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2015-01-04 19:09:27 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2015-01-04 19:11:13 +0100 |
commit | 7da92fdcb040d1f82fc2a6c61fd05f76f7344035 (patch) | |
tree | 53d1eb844f8f5562482b78a85986a06466496005 /toolkit | |
parent | 6fd453224fc5fcf9953092d2883ab45417980f48 (diff) |
cppcheck: Possible inefficient checking for <var> emptiness
Change-Id: I6ca0e477a4429e762c48c721951b9876db3a5c6c
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/controls/dialogcontrol.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx index 5d84922ac517..af8f6d55a28d 100644 --- a/toolkit/source/controls/dialogcontrol.cxx +++ b/toolkit/source/controls/dialogcontrol.cxx @@ -140,7 +140,7 @@ public: virtual sal_Bool SAL_CALL hasElements( ) throw (RuntimeException, std::exception) SAL_OVERRIDE { ::osl::MutexGuard aGuard( m_aMutex ); - return ( things.size() > 0 ); + return ( !things.empty() ); } }; |