diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-04-02 12:24:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-02 21:26:30 +0200 |
commit | 496ad6ad023229377476cf84eb243d2e669ae3d0 (patch) | |
tree | f717c2428e48f54cb8f5791acfce18e510a79355 | |
parent | c898611bd56a2ea090b2eb46f4d7bd4dd57594a7 (diff) |
use more string_view
Change-Id: I8be5ab687c2fe039e0a48d505b615f7cb88b633d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132454
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r-- | linguistic/source/dicimp.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index ea4718ff8bce..d37990824f34 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -92,14 +92,14 @@ static uno::Reference< XLinguServiceManager2 > GetLngSvcMgr_Impl() return xRes; } -static bool getTag(std::string_view rLine, const char *pTagName, +static bool getTag(std::string_view rLine, std::string_view rTagName, OString &rTagValue) { - size_t nPos = rLine.find(pTagName); + size_t nPos = rLine.find(rTagName); if (nPos == std::string_view::npos) return false; - rTagValue = comphelper::string::strip(rLine.substr(nPos + strlen(pTagName)), + rTagValue = comphelper::string::strip(rLine.substr(nPos + rTagName.size()), ' '); return true; } |