summaryrefslogtreecommitdiff
path: root/include/vbahelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-13 12:43:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-13 15:20:58 +0200
commit3697b87b70c69e17e1d0398e0192a11dab179fe3 (patch)
treea498cce1f1351e6f92385aa9245c66c0724b6430 /include/vbahelper
parent9bc95521aaa35b533894b3934519acdbd7a47815 (diff)
use more OUString::operator== in forms..sal
Change-Id: I70d7e50f8c1e019524ccad915f0cca912c5035dc Reviewed-on: https://gerrit.libreoffice.org/39899 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vbahelper')
-rw-r--r--include/vbahelper/vbacollectionimpl.hxx2
-rw-r--r--include/vbahelper/vbahelperinterface.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx
index 163f4a1078e7..93e5e0e65ec9 100644
--- a/include/vbahelper/vbacollectionimpl.hxx
+++ b/include/vbahelper/vbacollectionimpl.hxx
@@ -208,7 +208,7 @@ public:
for ( ; cachePos != it_end; ++cachePos )
{
css::uno::Reference< css::container::XNamed > xName( *cachePos, css::uno::UNO_QUERY_THROW );
- if ( aName.equals( xName->getName() ) )
+ if ( aName == xName->getName() )
break;
}
return ( cachePos != it_end );
diff --git a/include/vbahelper/vbahelperinterface.hxx b/include/vbahelper/vbahelperinterface.hxx
index eee4523d6989..d68767ddd7dc 100644
--- a/include/vbahelper/vbahelperinterface.hxx
+++ b/include/vbahelper/vbahelperinterface.hxx
@@ -95,7 +95,7 @@ public:
const OUString* pStart = sServices.getConstArray();
const OUString* pEnd = pStart + sServices.getLength();
for ( ; pStart != pEnd ; ++pStart )
- if ( (*pStart).equals( ServiceName ) )
+ if ( *pStart == ServiceName )
return true;
return false;
}