diff options
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/compatibility.cxx | 4 | ||||
-rw-r--r-- | unotools/source/config/fontcfg.cxx | 2 | ||||
-rw-r--r-- | unotools/source/ucbhelper/ucbhelper.cxx | 4 |
3 files changed, 3 insertions, 7 deletions
diff --git a/unotools/source/config/compatibility.cxx b/unotools/source/config/compatibility.cxx index 0ca9a09652fd..bedc28068a62 100644 --- a/unotools/source/config/compatibility.cxx +++ b/unotools/source/config/compatibility.cxx @@ -427,9 +427,7 @@ SvtCompatibilityOptions_Impl::SvtCompatibilityOptions_Impl() { SvtSysLocale aSysLocale; com::sun::star::lang::Locale aLocale = aSysLocale.GetLocale(); - if ( aLocale.Language.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("zh")) || - aLocale.Language.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ja")) || - aLocale.Language.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ko")) ) + if ( aLocale.Language == "zh" || aLocale.Language == "ja" || aLocale.Language == "ko" ) aItem.bExpandWordSpace = false; m_aDefOptions = aItem; diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx index f65a25d82e98..f464f890f092 100644 --- a/unotools/source/config/fontcfg.cxx +++ b/unotools/source/config/fontcfg.cxx @@ -1224,7 +1224,7 @@ const FontNameAttr* FontSubstConfiguration::getSubstInfo( const String& rFontNam aLocale.Variant = OUString(); else if( !aLocale.Country.isEmpty() ) aLocale.Country = OUString(); - else if( ! aLocale.Language.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "en" ) ) ) + else if( aLocale.Language != "en" ) aLocale.Language = OUString( RTL_CONSTASCII_USTRINGPARAM( "en" ) ); else aLocale.Language = OUString(); diff --git a/unotools/source/ucbhelper/ucbhelper.cxx b/unotools/source/ucbhelper/ucbhelper.cxx index daee93fc2d3a..5b454c0cf4b6 100644 --- a/unotools/source/ucbhelper/ucbhelper.cxx +++ b/unotools/source/ucbhelper/ucbhelper.cxx @@ -288,9 +288,7 @@ bool utl::UCBContentHelper::MakeFolder( != 0) { // Make sure the only required bootstrap property is "Title": - if (info[i].Properties.getLength() != 1 - || !info[i].Properties[0].Name.equalsAsciiL( - RTL_CONSTASCII_STRINGPARAM("Title"))) + if ( info[i].Properties.getLength() != 1 || info[i].Properties[0].Name != "Title" ) { continue; } |