summaryrefslogtreecommitdiff
path: root/scripting/source/provider/URIHelper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/source/provider/URIHelper.cxx')
-rw-r--r--scripting/source/provider/URIHelper.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripting/source/provider/URIHelper.cxx b/scripting/source/provider/URIHelper.cxx
index 481a5b2f6e4e..5333bee34da4 100644
--- a/scripting/source/provider/URIHelper.cxx
+++ b/scripting/source/provider/URIHelper.cxx
@@ -164,16 +164,16 @@ ScriptingFrameworkURIHelper::initBaseURI()
}
OUString
-ScriptingFrameworkURIHelper::getLanguagePart(const OUString& rStorageURI)
+ScriptingFrameworkURIHelper::getLanguagePart(std::u16string_view rStorageURI)
{
OUString result;
- sal_Int32 idx = rStorageURI.indexOf(m_sBaseURI);
+ size_t idx = rStorageURI.find(m_sBaseURI);
sal_Int32 len = m_sBaseURI.getLength() + 1;
- if ( idx != -1 )
+ if ( idx != std::u16string_view::npos )
{
- result = rStorageURI.copy(idx + len);
+ result = rStorageURI.substr(idx + len);
result = result.replace('/', '|');
}
return result;