diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-07-31 00:02:18 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-07-31 00:02:18 +0200 |
commit | 1f7b66104dcb8ccad3efd2bd116c42e090ee9981 (patch) | |
tree | c140867d6872aecea550dbb883362e1408108897 /vbahelper | |
parent | 386c28330ea590eb42877af1c807973e8fb29be0 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'vbahelper')
-rw-r--r-- | vbahelper/source/msforms/vbacontrols.cxx | 2 | ||||
-rw-r--r-- | vbahelper/source/vbahelper/vbadocumentsbase.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx index 309ff71e929f..543a4bfcd56f 100644 --- a/vbahelper/source/msforms/vbacontrols.cxx +++ b/vbahelper/source/msforms/vbacontrols.cxx @@ -128,7 +128,7 @@ public: virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException) { - return ( mControls.size() > 0 ); + return ( !mControls.empty() ); } // XNameAcess diff --git a/vbahelper/source/vbahelper/vbadocumentsbase.cxx b/vbahelper/source/vbahelper/vbadocumentsbase.cxx index d4d9ce700e66..261599da630b 100644 --- a/vbahelper/source/vbahelper/vbadocumentsbase.cxx +++ b/vbahelper/source/vbahelper/vbadocumentsbase.cxx @@ -189,7 +189,7 @@ public: virtual ::sal_Bool SAL_CALL hasElements( ) throw (uno::RuntimeException) { - return (m_documents.size() > 0); + return (!m_documents.empty()); } //XNameAccess |