summaryrefslogtreecommitdiff
path: root/vbahelper/source
diff options
context:
space:
mode:
Diffstat (limited to 'vbahelper/source')
-rw-r--r--vbahelper/source/msforms/vbacontrols.cxx2
-rw-r--r--vbahelper/source/vbahelper/vbadocumentsbase.cxx2
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