summaryrefslogtreecommitdiff
path: root/uui
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-05 14:39:55 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 12:58:13 +0200
commitfcd1637d5101b9142e6808edfb77b01122857901 (patch)
tree5fd09f97de80cf2a9481bd55a798015db35f1d0c /uui
parentef90021abe3735fba57145598fd7c3d359d2718e (diff)
convert OUString compareToAscii == 0 to equalsAscii
Convert code like aStr.compareToAscii("XXX") == 0 to aStr.equalsAscii("XXX") which is both easier to read and faster. Change-Id: I448abf58f2fa0e7715dba53f8e8825ca0587c83f
Diffstat (limited to 'uui')
-rw-r--r--uui/source/iahndl-filter.cxx4
-rw-r--r--uui/source/iahndl.cxx2
-rw-r--r--uui/source/services.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/uui/source/iahndl-filter.cxx b/uui/source/iahndl-filter.cxx
index 031ef91ff0a0..d67717aa7f1a 100644
--- a/uui/source/iahndl-filter.cxx
+++ b/uui/source/iahndl-filter.cxx
@@ -237,7 +237,7 @@ handleAmbigousFilterRequest_(
aPackedSet >>= lProps;
for( nStep=0; nStep<lProps.getLength(); ++nStep )
{
- if( lProps[nStep].Name.compareToAscii("UIName") == 0 )
+ if( lProps[nStep].Name.equalsAscii("UIName") )
{
OUString sTemp;
lProps[nStep].Value >>= sTemp;
@@ -259,7 +259,7 @@ handleAmbigousFilterRequest_(
aPackedSet >>= lProps;
for( nStep=0; nStep<lProps.getLength(); ++nStep )
{
- if( lProps[nStep].Name.compareToAscii("UIName") == 0 )
+ if( lProps[nStep].Name.equalsAscii("UIName") )
{
OUString sTemp;
lProps[nStep].Value >>= sTemp;
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx
index 74568bcac699..6f1373a7a480 100644
--- a/uui/source/iahndl.cxx
+++ b/uui/source/iahndl.cxx
@@ -355,7 +355,7 @@ namespace
}
const ::com::sun::star::uno::Type aType( pTypeDesc->pWeakRef );
- const bool bExactMatch = ( i_rPropagation.compareToAscii( "named-only" ) == 0 );
+ const bool bExactMatch = i_rPropagation.equalsAscii( "named-only" );
if ( bExactMatch )
return i_rRequest.getValueType().equals( aType );
diff --git a/uui/source/services.cxx b/uui/source/services.cxx
index 4c9145b44f19..f2d7c76aaa2e 100644
--- a/uui/source/services.cxx
+++ b/uui/source/services.cxx
@@ -86,7 +86,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL uui_component_getFactory(sal_Cha
//////////////////////////////////////////////////////////////////////
else if ( uui::PasswordContainerInteractionHandler::getImplementationName_Static().
- compareToAscii( pImplName ) == 0 )
+ equalsAscii( pImplName ) )
{
xFactory =
uui::PasswordContainerInteractionHandler::createServiceFactory( xSMgr );