diff options
Diffstat (limited to 'linguistic/source/dicimp.cxx')
-rw-r--r-- | linguistic/source/dicimp.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index 20fe8bbadac1..ea4718ff8bce 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(const OString &rLine, const char *pTagName, +static bool getTag(std::string_view rLine, const char *pTagName, OString &rTagValue) { - sal_Int32 nPos = rLine.indexOf(pTagName); - if (nPos == -1) + size_t nPos = rLine.find(pTagName); + if (nPos == std::string_view::npos) return false; - rTagValue = comphelper::string::strip(rLine.subView(nPos + strlen(pTagName)), + rTagValue = comphelper::string::strip(rLine.substr(nPos + strlen(pTagName)), ' '); return true; } |