From d45483489513692be77a61cf343663e839483204 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Nov 2013 16:36:51 +0200 Subject: Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls" This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295. I mistakenly converted OUString::equalsL calls to OUString::startsWith calls. --- linguistic/source/dicimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linguistic') diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index e91d66bf2e37..7000cd0715d5 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.startsWith("")) + if (aTagValue.equalsL(RTL_CONSTASCII_STRINGPARAM(""))) 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.startsWith("negative")) + if (aTagValue.equalsL(RTL_CONSTASCII_STRINGPARAM("negative"))) bNeg = sal_True; else bNeg = sal_False; -- cgit