summaryrefslogtreecommitdiff
path: root/unotools/source/config
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-01-16 14:13:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-01-16 14:13:07 +0000
commit3f41fea91bae205d38a92521f317411614d03116 (patch)
treecaa03173a6819892eb22e6ec2b4a0d8dde768940 /unotools/source/config
parent822cfe5e6d2aa07353dba44fdf3bec6f802a22f7 (diff)
equalsAsciiL faster than equalsAscii & comparetoAscii(const sal_Char*)
Diffstat (limited to 'unotools/source/config')
-rw-r--r--unotools/source/config/compatibility.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/unotools/source/config/compatibility.cxx b/unotools/source/config/compatibility.cxx
index 6d426095eed2..275230452919 100644
--- a/unotools/source/config/compatibility.cxx
+++ b/unotools/source/config/compatibility.cxx
@@ -429,8 +429,9 @@ SvtCompatibilityOptions_Impl::SvtCompatibilityOptions_Impl()
{
SvtSysLocale aSysLocale;
com::sun::star::lang::Locale aLocale = aSysLocale.GetLocale();
- if ( aLocale.Language.equalsAscii( "zh" ) || aLocale.Language.equalsAscii( "ja" ) ||
- aLocale.Language.equalsAscii( "ko" ) )
+ if ( aLocale.Language.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("zh")) ||
+ aLocale.Language.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ja")) ||
+ aLocale.Language.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ko")) )
aItem.bExpandWordSpace = false;
m_aDefOptions = aItem;