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 | 61a718a36525dcc570be0fec8611c9106ed73208 (patch) | |
tree | bcaf0c77b72aa2ef83ae02b8dd13447e0315c27b /vbahelper | |
parent | 433b71d8eb3992a9f79a914a5b79dd4e8ace0f09 (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 be5d05e7f3..6b57cd17c8 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 0e5782d632..d7a455a61d 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 |