diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-01-15 16:51:11 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-15 16:51:11 +0000 |
commit | 4a35eeb3fe0c8521232f881677c7e52da5b1a6cf (patch) | |
tree | 120a27ff4916760c2e54cd5f8fc5d7635c0b90a8 | |
parent | 3a991451cdff7ca92f4da84808abcf58ca26290e (diff) |
equalsAsciiL faster than equalsAscii when length available
-rw-r--r-- | desktop/source/app/configinit.cxx | 2 | ||||
-rw-r--r-- | desktop/source/app/langselect.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/app/configinit.cxx b/desktop/source/app/configinit.cxx index 3704d842c3..4da030c453 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 c7c69fc574..f505fe3c2d 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")); } |