diff options
Diffstat (limited to 'jvmfwk/source/fwkutil.cxx')
-rw-r--r-- | jvmfwk/source/fwkutil.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jvmfwk/source/fwkutil.cxx b/jvmfwk/source/fwkutil.cxx index ee083f064926..89cb2e5415cb 100644 --- a/jvmfwk/source/fwkutil.cxx +++ b/jvmfwk/source/fwkutil.cxx @@ -136,10 +136,10 @@ rtl::ByteSequence decodeBase16(const rtl::ByteSequence& data) return ret; } -OUString getDirFromFile(const OUString& usFilePath) +OUString getDirFromFile(std::u16string_view usFilePath) { - sal_Int32 index = usFilePath.lastIndexOf('/'); - return usFilePath.copy(0, index); + size_t index = usFilePath.rfind('/'); + return OUString(usFilePath.substr(0, index)); } OUString getLibraryLocation() |