summaryrefslogtreecommitdiff
path: root/svtools/source/config
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-16 21:20:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-16 21:20:49 +0000
commite432dff366f500a8c43577ac9202669aa15e04b4 (patch)
tree7c78c99283eb9d31c65bff51c4904c5cd43aacd0 /svtools/source/config
parent74de5ce5cda5473b6ce079120efbc07a1784ecb4 (diff)
equalsAsciiL faster than equalsAscii
Diffstat (limited to 'svtools/source/config')
-rw-r--r--svtools/source/config/extcolorcfg.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/config/extcolorcfg.cxx b/svtools/source/config/extcolorcfg.cxx
index b62285f85ea6..424e234b6b50 100644
--- a/svtools/source/config/extcolorcfg.cxx
+++ b/svtools/source/config/extcolorcfg.cxx
@@ -327,12 +327,12 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme)
{
aComponentNames = GetPropertyNames(sBase);
FillComponentColors(aComponentNames,aDisplayNameMap);
- } // if ( bFound )
+ }
if ( !m_sLoadedScheme.getLength() )
m_sLoadedScheme = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("default"));
- if ( !sScheme.equalsAscii("default") )
+ if ( !sScheme.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("default")) )
{
::rtl::OUString sDefault(RTL_CONSTASCII_USTRINGPARAM("default"));
if ( ExistsScheme(sDefault) )
@@ -341,7 +341,7 @@ void ExtendedColorConfig_Impl::Load(const rtl::OUString& rScheme)
aComponentNames = GetPropertyNames(sBaseDefault);
FillComponentColors(aComponentNames,aDisplayNameMap);
}
- } // if ( !sScheme.equalsAscii("default") )
+ }
if ( !bFound && sScheme.getLength() )
{
AddScheme(sScheme);