From 7da92fdcb040d1f82fc2a6c61fd05f76f7344035 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 4 Jan 2015 19:09:27 +0100 Subject: cppcheck: Possible inefficient checking for emptiness Change-Id: I6ca0e477a4429e762c48c721951b9876db3a5c6c --- unotools/source/config/cmdoptions.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unotools') diff --git a/unotools/source/config/cmdoptions.cxx b/unotools/source/config/cmdoptions.cxx index d343e9ffa347..59b7f1966f4b 100644 --- a/unotools/source/config/cmdoptions.cxx +++ b/unotools/source/config/cmdoptions.cxx @@ -61,7 +61,7 @@ class SvtCmdOptions bool HasEntries() const { - return ( m_aCommandHashMap.size() > 0 ); + return ( !m_aCommandHashMap.empty() ); } bool Lookup( const OUString& aCmd ) const -- cgit