diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-21 01:06:12 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-02-21 01:07:21 +0900 |
commit | 30063974396f43ef30bc6b81f0260d3fb09d17cd (patch) | |
tree | aafd11745407f9579c855b3dd9c70c40c1360f73 /svtools/source | |
parent | c306532e0bed1df36abf5d7ad6f0363056e69739 (diff) |
Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/filter/FilterConfigCache.cxx | 4 | ||||
-rw-r--r-- | svtools/source/misc/langhelp.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/filter/FilterConfigCache.cxx b/svtools/source/filter/FilterConfigCache.cxx index f130b25dcb46..66ffb8da6aaf 100644 --- a/svtools/source/filter/FilterConfigCache.cxx +++ b/svtools/source/filter/FilterConfigCache.cxx @@ -213,10 +213,10 @@ void FilterConfigCache::ImplInit() xFilterSet->getPropertyValue(SFLAGS) >>= lFlags; if (lFlags.getLength()!=1 || lFlags[0].isEmpty()) continue; - if (lFlags[0].equalsIgnoreAsciiCaseAscii("import")) + if (lFlags[0].equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("import"))) aEntry.nFlags = 1; else - if (lFlags[0].equalsIgnoreAsciiCaseAscii("export")) + if (lFlags[0].equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("export"))) aEntry.nFlags = 2; OUString sUIComponent; diff --git a/svtools/source/misc/langhelp.cxx b/svtools/source/misc/langhelp.cxx index b607cd4650ac..88a8c785061f 100644 --- a/svtools/source/misc/langhelp.cxx +++ b/svtools/source/misc/langhelp.cxx @@ -33,8 +33,8 @@ void localizeWebserviceURI( ::rtl::OUString& rURI ) { ::rtl::OUString aLang = Application::GetSettings().GetUILocale().Language; - if ( aLang.equalsIgnoreAsciiCaseAscii( "pt" ) - && Application::GetSettings().GetUILocale().Country.equalsIgnoreAsciiCaseAscii("br") ) + if ( aLang.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("pt")) + && Application::GetSettings().GetUILocale().Country.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("br")) ) { aLang = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "pt-br" )); } |