From e4fb171d3ad15ae9abbc93d9db956674498c9dd5 Mon Sep 17 00:00:00 2001 From: Szabolcs Dezsi Date: Fri, 6 Apr 2012 14:09:04 +0200 Subject: Replaced a few equal calls with == --- connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx | 2 +- .../source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'connectivity/source/drivers/mozab/bootstrap') diff --git a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx index d12c2e253bdc..0d7d3af913fd 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx +++ b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx @@ -257,7 +257,7 @@ extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory( { ::rtl::OUString aImplName( ::rtl::OUString::createFromAscii( pImplementationName ) ); Reference< XSingleServiceFactory > xFactory; - if (aImplName.equals( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.mozilla.MozillaBootstrap")) )) + if ( aImplName == "com.sun.star.comp.mozilla.MozillaBootstrap" ) { Sequence< ::rtl::OUString > aSNS( 1 ); aSNS[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.mozilla.MozillaBootstrap")); diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx index 8f28db88edaa..959896a0c426 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx +++ b/connectivity/source/drivers/mozab/bootstrap/MNSProfileDiscover.cxx @@ -184,19 +184,19 @@ namespace connectivity ++itor) { struct ini_NameValue * aValue = &(*itor); - if (aValue->sName.equals(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Name")))) + if ( aValue->sName == "Name" ) { profileName = aValue->sValue; } - else if (aValue->sName.equals(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("IsRelative")))) + else if ( aValue->sName == "IsRelative" ) { sIsRelative = aValue->sValue; } - else if (aValue->sName.equals(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Path")))) + else if ( aValue->sName == "Path" ) { profilePath = aValue->sValue; } - else if (aValue->sName.equals(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("Default")))) + else if ( aValue->sName == "Default" ) { sIsDefault = aValue->sValue; } -- cgit