From 3697b87b70c69e17e1d0398e0192a11dab179fe3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 13 Jul 2017 12:43:20 +0200 Subject: use more OUString::operator== in forms..sal Change-Id: I70d7e50f8c1e019524ccad915f0cca912c5035dc Reviewed-on: https://gerrit.libreoffice.org/39899 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vbahelper/vbacollectionimpl.hxx | 2 +- include/vbahelper/vbahelperinterface.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include/vbahelper') 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; } -- cgit