diff options
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/helper.cxx | 2 | ||||
-rw-r--r-- | l10ntools/source/localize.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/l10ntools/source/helper.cxx b/l10ntools/source/helper.cxx index 2dce070b90fc..767c04eb5152 100644 --- a/l10ntools/source/helper.cxx +++ b/l10ntools/source/helper.cxx @@ -44,7 +44,7 @@ OString unEscapeAll( { if( rText[nIndex] == '\\' && nIndex+1 < nLength ) { - sal_Int32 nEscapedOne = rEscaped.indexOf(rText.copy(nIndex,2)); + sal_Int32 nEscapedOne = rEscaped.indexOf(rText.subView(nIndex,2)); if( nEscapedOne != -1 ) { sReturn.append(rUnEscaped[nEscapedOne/2]); diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx index 47cc132fd8c3..38e9c21f3cac 100644 --- a/l10ntools/source/localize.cxx +++ b/l10ntools/source/localize.cxx @@ -118,7 +118,7 @@ void handleCommand( } void InitPoFile( - const OString& rProject, const OString& rInPath, + std::string_view rProject, const OString& rInPath, const OString& rPotDir, const OString& rOutPath ) { //Create directory for po file @@ -176,7 +176,7 @@ bool fileExists(const OString& fileName) OString gDestRoot; -bool handleFile(const OString& rProject, const OUString& rUrl, const OString& rPotDir) +bool handleFile(std::string_view rProject, const OUString& rUrl, const OString& rPotDir) { struct Command { std::u16string_view extension; @@ -281,7 +281,7 @@ bool handleFile(const OString& rProject, const OUString& rUrl, const OString& rP } void handleFilesOfDir( - std::vector<OUString>& aFiles, const OString& rProject, + std::vector<OUString>& aFiles, std::string_view rProject, const OString& rPotDir ) { ///Handle files in lexical order |