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/po.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/po.cxx')
-rw-r--r-- | l10ntools/source/po.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index e075d52b0bd5..fc0b5bbfbf7a 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -83,7 +83,7 @@ namespace OString lcl_GenMsgString(std::string_view rString) { if ( rString.empty() ) - return "\"\""; + return "\"\""_ostr; OString sResult = "\"" + @@ -131,7 +131,7 @@ void GenPoEntry::writeToFile(std::ofstream& rOFStream) const if ( !m_sExtractCom.isEmpty() ) rOFStream << "#. " - << m_sExtractCom.toString().replaceAll("\n","\n#. ") << std::endl; + << m_sExtractCom.toString().replaceAll("\n"_ostr,"\n#. "_ostr) << std::endl; for(const auto& rReference : m_sReferences) rOFStream << "#: " << rReference << std::endl; if ( m_bFuzzy ) |