diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-11-19 20:41:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-11-20 07:28:07 +0100 |
commit | 2718e9c1d5779a23bd6587a7e0e55a0281b88745 (patch) | |
tree | 8e751942dd4da37e97489320c9bc33dffb8146d6 /l10ntools/source/lngmerge.cxx | |
parent | fa7dd627c9d74f5bf584caddbdc32c7a0f3543a1 (diff) |
Extended loplugin:ostr: l10ntools
Change-Id: I6c46535568ac6c29784e9336198b51c79c9e3859
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159695
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'l10ntools/source/lngmerge.cxx')
-rw-r--r-- | l10ntools/source/lngmerge.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/l10ntools/source/lngmerge.cxx b/l10ntools/source/lngmerge.cxx index 176cf46b6285..98daf27a4f9f 100644 --- a/l10ntools/source/lngmerge.cxx +++ b/l10ntools/source/lngmerge.cxx @@ -116,7 +116,7 @@ void LngParser::CreatePO( const OString &rPOFile ) else { WritePO( aPOStream , Text , sSource , sID ); } - Text.erase("x-comment"); + Text.erase("x-comment"_ostr); } aPOStream.close(); } @@ -126,8 +126,8 @@ void LngParser::WritePO(PoOfstream &aPOStream, const OString &rID) { common::writePoEntry( - "Ulfex", aPOStream, rActFileName, "LngText", - rID, OString(), rText_inout.count("x-comment") ? rText_inout["x-comment"] : OString(), rText_inout["en-US"]); + "Ulfex"_ostr, aPOStream, rActFileName, "LngText", + rID, OString(), rText_inout.count("x-comment"_ostr) ? rText_inout["x-comment"_ostr] : OString(), rText_inout["en-US"_ostr]); } bool LngParser::isNextGroup(OString &sGroup_out, std::string_view sLine_in) @@ -220,7 +220,7 @@ void LngParser::Merge( mvLines[ nPos ] = sLang + " = \"" // escape quotes, unescape double escaped quotes fdo#56648 - + sNewText.replaceAll("\"","\\\"").replaceAll("\\\\\"","\\\"") + + sNewText.replaceAll("\""_ostr,"\\\""_ostr).replaceAll("\\\\\""_ostr,"\\\""_ostr) + "\""; Text[ sLang ] = sNewText; } @@ -255,7 +255,7 @@ void LngParser::Merge( const OString sLine { sCur + " = \"" // escape quotes, unescape double escaped quotes fdo#56648 - + sNewText.replaceAll("\"","\\\"").replaceAll("\\\\\"","\\\"") + + sNewText.replaceAll("\""_ostr,"\\\""_ostr).replaceAll("\\\\\""_ostr,"\\\""_ostr) + "\"" }; nLastLangPos++; |