diff options
Diffstat (limited to 'sal/osl/w32/path_helper.cxx')
-rw-r--r-- | sal/osl/w32/path_helper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/osl/w32/path_helper.cxx b/sal/osl/w32/path_helper.cxx index a2dd134fded9..23a2412d91ac 100644 --- a/sal/osl/w32/path_helper.cxx +++ b/sal/osl/w32/path_helper.cxx @@ -25,8 +25,8 @@ #include <algorithm> #include <wchar.h> -constexpr OUStringLiteral BACKSLASH (u"\\"); -constexpr OUStringLiteral SLASH (u"/"); +constexpr OUString BACKSLASH (u"\\"_ustr); +constexpr OUString SLASH (u"/"_ustr); void osl_systemPathEnsureSeparator(/*inout*/ rtl_uString** ppustrPath) { @@ -57,7 +57,7 @@ void osl_systemPathRemoveSeparator(/*inout*/ rtl_uString** ppustrPath) if (i > -1 && (i == (path.getLength() - 1))) { - path = OUString(path.getStr(), path.getLength() - 1); + path = path.copy(0, path.getLength() - 1); rtl_uString_assign(ppustrPath, path.pData); } } |