summaryrefslogtreecommitdiff
path: root/sal/osl/unx/file_url.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/file_url.cxx')
-rw-r--r--sal/osl/unx/file_url.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/file_url.cxx b/sal/osl/unx/file_url.cxx
index 5e99d5306cdc..54ec0c02ac46 100644
--- a/sal/osl/unx/file_url.cxx
+++ b/sal/osl/unx/file_url.cxx
@@ -286,7 +286,7 @@ template<typename T> oslFileError getSystemPathFromFileUrl(
return osl_File_E_INVAL;
if constexpr (std::is_same_v<T, rtl::OString>) {
- if (!decodeFromUtf8(std::u16string_view(url).substr(i), path)) {
+ if (!decodeFromUtf8(url.subView(i), path)) {
return osl_File_E_INVAL;
}
} else if constexpr (std::is_same_v<T, rtl::OUString>) {