summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-20 13:18:33 +0200
committerNoel Grandin <noel@peralex.com>2013-11-20 13:56:08 +0200
commitacebbee971136e6ee0a7bc75bd57d937d6e1c295 (patch)
treef56fec189343e1d9297918037b55263733243d7b /linguistic
parentd894fee80e40519cb579987b95cb3d19345dfa71 (diff)
remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls
Convert code like: if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aByteStr.startsWith("rem")) Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/dicimp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index 7000cd0715d5..e91d66bf2e37 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.startsWith("<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.startsWith("negative"))
bNeg = sal_True;
else
bNeg = sal_False;