diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 11:34:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-21 13:29:29 +0200 |
commit | 6eac9deadd9fb6d0c547791e3a8ae4f9a4d33de4 (patch) | |
tree | ff375d3a9e989c731a42a1255b8e1cede2bb6bbd /linguistic | |
parent | 89633c6da1cde46983926dcc2e0f8e08de0e9378 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OUString::equalsL
Convert code like this:
if (aStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem")))
to:
if (aStr == "rem")
which compiles down to the same code.
Change-Id: I2dfa0f0a457c465948ecf720daaa45ff29d69de9
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/source/dicimp.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 7000cd0715d5..42e18a7b62b6 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -117,7 +117,7 @@ sal_Int16 ReadDicVersion( SvStreamPtr &rpStream, sal_uInt16 &nLng, sal_Bool &bNe // lang: field if (getTag(aLine, "lang: ", aTagValue)) { - if (aTagValue.equalsL(RTL_CONSTASCII_STRINGPARAM("<none>"))) + if (aTagValue == "<none>") nLng = LANGUAGE_NONE; else nLng = LanguageTag::convertToLanguageTypeWithFallback( @@ -127,7 +127,7 @@ sal_Int16 ReadDicVersion( SvStreamPtr &rpStream, sal_uInt16 &nLng, sal_Bool &bNe // type: negative / positive if (getTag(aLine, "type: ", aTagValue)) { - if (aTagValue.equalsL(RTL_CONSTASCII_STRINGPARAM("negative"))) + if (aTagValue == "negative") bNeg = sal_True; else bNeg = sal_False; |