summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-17 10:31:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-17 10:31:31 +0000
commit3245eb50d6fa635684b9ad78df9f560c26c80034 (patch)
treee784312ee895f09e77abf046c3d256c25417d498
parent47cfe443cd7f2eb9c32a18f40bc0442ce79a5557 (diff)
equalsAsciiL faster than equalsAscii
-rw-r--r--shell/source/backends/gconfbe/gconfaccess.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/backends/gconfbe/gconfaccess.cxx b/shell/source/backends/gconfbe/gconfaccess.cxx
index 41f0c8adc3..2fcca9514a 100644
--- a/shell/source/backends/gconfbe/gconfaccess.cxx
+++ b/shell/source/backends/gconfbe/gconfaccess.cxx
@@ -431,7 +431,7 @@ sal_Bool SAL_CALL isDependencySatisfied( GConfClient* aClient, const Configurati
{
rtl::OUString aCompleteName( rtl::OStringToOUString(
g_get_real_name(), osl_getThreadTextEncoding() ) );
- if( !aCompleteName.equalsAscii( "Unknown" ) )
+ if( !aCompleteName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Unknown")) )
return sal_True;
}
break;
@@ -440,7 +440,7 @@ sal_Bool SAL_CALL isDependencySatisfied( GConfClient* aClient, const Configurati
{
rtl::OUString aCompleteName( rtl::OStringToOUString(
g_get_real_name(), osl_getThreadTextEncoding() ) );
- if( !aCompleteName.equalsAscii( "Unknown" ) )
+ if( !aCompleteName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Unknown")) )
{
if( aCompleteName.trim().indexOf(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(" ")), 0) != -1 )
return sal_True;