summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-29 20:52:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-30 21:21:34 +0200
commitfbff7af0a1a31e82c3a3eb6dac77d5a48ef3371d (patch)
tree2aad7e48c6f7a260e0c3ebf6799fbfb95bb6a210 /linguistic
parent40077fe30919494f0ecd04c4620cac2334d3d382 (diff)
split comphelper::string::strip functions into String and view version
which is more obvious, from the perspective of the caller, and lets us avoid creating a new String if nothing needs to be stripped Change-Id: I66a980eaf4aa818251bec49bdb16c2dddb0745e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133657 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/dicimp.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx
index 627cb2dd505b..59e88fd009e5 100644
--- a/linguistic/source/dicimp.cxx
+++ b/linguistic/source/dicimp.cxx
@@ -99,8 +99,8 @@ static bool getTag(std::string_view rLine, std::string_view rTagName,
if (nPos == std::string_view::npos)
return false;
- rTagValue = comphelper::string::strip(rLine.substr(nPos + rTagName.size()),
- ' ');
+ rTagValue = OString(comphelper::string::strip(rLine.substr(nPos + rTagName.size()),
+ ' '));
return true;
}