summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-15 16:51:11 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-15 16:51:11 +0000
commite25d8eb4ae77230a4f98bd811d6be647b69ace6c (patch)
treea4e75d404901837ce62054a7294f20d6b917bc60 /desktop
parent7af7025b3de21d9ab52840e77019ebb9174efdf7 (diff)
equalsAsciiL faster than equalsAscii when length available
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/configinit.cxx2
-rw-r--r--desktop/source/app/langselect.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/app/configinit.cxx b/desktop/source/app/configinit.cxx
index 5851acb162c2..7a6da3b8db25 100644
--- a/desktop/source/app/configinit.cxx
+++ b/desktop/source/app/configinit.cxx
@@ -243,7 +243,7 @@ private:
uno::Any SAL_CALL ConfigurationErrorHandler::Context::getValueByName( OUString const & aName)
throw (uno::RuntimeException)
{
- if ( aName.equalsAscii( CONFIG_ERROR_HANDLER ) )
+ if ( aName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(CONFIG_ERROR_HANDLER)) )
{
if ( !m_xHandler.is() )
m_xHandler = ConfigurationErrorHandler::getDefaultInteractionHandler();
diff --git a/desktop/source/app/langselect.cxx b/desktop/source/app/langselect.cxx
index 1ccfb42c2a2a..11c5c6a25919 100644
--- a/desktop/source/app/langselect.cxx
+++ b/desktop/source/app/langselect.cxx
@@ -416,7 +416,7 @@ Sequence< OUString > LanguageSelection::getInstalledLanguages()
static Sequence< OUString > _getFallbackLocales(const OUString& aIsoLang)
{
Sequence< OUString > seqFallbacks;
- if (aIsoLang.equalsAscii("zh-HK")) {
+ if (aIsoLang.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("zh-HK"))) {
seqFallbacks = Sequence< OUString >(1);
seqFallbacks[0] = OUString(RTL_CONSTASCII_USTRINGPARAM("zh-TW"));
}