linguistic/source/dicimp.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 496ad6ad023229377476cf84eb243d2e669ae3d0
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sat Apr 2 12:24:44 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Sat Apr 2 21:26:30 2022 +0200

    use more string_view
    
    Change-Id: I8be5ab687c2fe039e0a48d505b615f7cb88b633d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132454
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

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;
 }

Reply via email to