diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 10:05:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 10:07:32 +0200 |
commit | 1730df0127ff230cf6c89f4815f5b59c8603fa2b (patch) | |
tree | 4d5b32ea155c173fe3cfd905bb148e0998286d9a /linguistic/source | |
parent | 52bbd9cc00b5a1e15e4f96b5c5fa5e75855692c1 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::append
Convert code like:
aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") );
to:
aOStringBuf.append( " is missing )" );
which compiles down to the same code.
Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
Diffstat (limited to 'linguistic/source')
-rw-r--r-- | linguistic/source/dicimp.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 82d4e7e2f66a..7000cd0715d5 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -377,7 +377,7 @@ static OString formatForSave(const uno::Reference< XDictionaryEntry > &xEntry, if (xEntry->isNegative()) { - aStr.append(RTL_CONSTASCII_STRINGPARAM("==")); + aStr.append("=="); aStr.append(OUStringToOString(xEntry->getReplacementText(), eEnc)); } return aStr.makeStringAndClear(); @@ -467,22 +467,22 @@ sal_uLong DictionaryNeo::saveEntries(const OUString &rURL) * undetermined or multiple? Earlier versions did not know about 'und' and * 'mul' and 'zxx' codes. Sync with ReadDicVersion() */ if (LinguIsUnspecified(nLanguage)) - pStream->WriteLine(OString(RTL_CONSTASCII_STRINGPARAM("lang: <none>"))); + pStream->WriteLine(OString("lang: <none>")); else { - OStringBuffer aLine(RTL_CONSTASCII_STRINGPARAM("lang: ")); + OStringBuffer aLine("lang: "); aLine.append(OUStringToOString(LanguageTag::convertToBcp47(nLanguage), eEnc)); pStream->WriteLine(aLine.makeStringAndClear()); } if (0 != (nErr = pStream->GetError())) return nErr; if (eDicType == DictionaryType_POSITIVE) - pStream->WriteLine(OString(RTL_CONSTASCII_STRINGPARAM("type: positive"))); + pStream->WriteLine(OString("type: positive")); else - pStream->WriteLine(OString(RTL_CONSTASCII_STRINGPARAM("type: negative"))); + pStream->WriteLine(OString("type: negative")); if (0 != (nErr = pStream->GetError())) return nErr; - pStream->WriteLine(OString(RTL_CONSTASCII_STRINGPARAM("---"))); + pStream->WriteLine(OString("---")); if (0 != (nErr = pStream->GetError())) return nErr; const uno::Reference< XDictionaryEntry > *pEntry = aEntries.getConstArray(); |