diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 10:31:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 13:55:30 +0200 |
commit | 65e4a776e8315fd61fd67ad00d28985b11f0b79e (patch) | |
tree | 1ab7a2947d47807086e0477a8d3ad35c2e75dd48 /l10ntools | |
parent | a7b7614c7cab42cd0839752635db81e25e1e50a1 (diff) |
simplify some OUString::copy calls
Change-Id: Ifa228ca02ea79a1309e1875414028aade7e5f12d
Reviewed-on: https://gerrit.libreoffice.org/39801
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/po.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/l10ntools/source/po.cxx b/l10ntools/source/po.cxx index d17a0708f242..f8a191adb10d 100644 --- a/l10ntools/source/po.cxx +++ b/l10ntools/source/po.cxx @@ -86,7 +86,7 @@ namespace sal_Int32 nIndex = 0; while((nIndex=sResult.indexOf("\\n",nIndex))!=-1) { - if( sResult.copy(nIndex-1,3)!="\\\\n" && + if( !sResult.match("\\\\n", nIndex-1) && nIndex!=sResult.getLength()-3) { sResult = sResult.replaceAt(nIndex,2,"\\n\"\n\""); |