diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-13 12:43:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-13 15:20:58 +0200 |
commit | 3697b87b70c69e17e1d0398e0192a11dab179fe3 (patch) | |
tree | a498cce1f1351e6f92385aa9245c66c0724b6430 /include | |
parent | 9bc95521aaa35b533894b3934519acdbd7a47815 (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')
-rw-r--r-- | include/com/sun/star/uno/Any.hxx | 2 | ||||
-rw-r--r-- | include/comphelper/stl_types.hxx | 2 | ||||
-rw-r--r-- | include/vbahelper/vbacollectionimpl.hxx | 2 | ||||
-rw-r--r-- | include/vbahelper/vbahelperinterface.hxx | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/include/com/sun/star/uno/Any.hxx b/include/com/sun/star/uno/Any.hxx index 0ea1fb9c4ad6..7171c1dbbbf8 100644 --- a/include/com/sun/star/uno/Any.hxx +++ b/include/com/sun/star/uno/Any.hxx @@ -566,7 +566,7 @@ template<> inline bool SAL_CALL operator == ( const Any & rAny, const ::rtl::OUString & value ) { return (typelib_TypeClass_STRING == rAny.pType->eTypeClass && - value.equals( * static_cast< const ::rtl::OUString * >( rAny.pData ) )); + value == * static_cast< const ::rtl::OUString * >( rAny.pData ) ); } // type diff --git a/include/comphelper/stl_types.hxx b/include/comphelper/stl_types.hxx index bb50c21a7e8c..77714d13dc4f 100644 --- a/include/comphelper/stl_types.hxx +++ b/include/comphelper/stl_types.hxx @@ -58,7 +58,7 @@ public: UStringMixEqual(bool bCaseSensitive = true):m_bCaseSensitive(bCaseSensitive){} bool operator() (const OUString& lhs, const OUString& rhs) const { - return m_bCaseSensitive ? lhs.equals( rhs ) : lhs.equalsIgnoreAsciiCase( rhs ); + return m_bCaseSensitive ? lhs == rhs : lhs.equalsIgnoreAsciiCase( rhs ); } bool isCaseSensitive() const {return m_bCaseSensitive;} }; 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; } |