diff options
Diffstat (limited to 'unotools/source/misc/fontdefs.cxx')
-rw-r--r-- | unotools/source/misc/fontdefs.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/misc/fontdefs.cxx b/unotools/source/misc/fontdefs.cxx index 9015f93e9de6..4a07087fd71f 100644 --- a/unotools/source/misc/fontdefs.cxx +++ b/unotools/source/misc/fontdefs.cxx @@ -457,14 +457,14 @@ OUString GetEnglishSearchFontName(std::u16string_view rInName) return rNameStr; } -OUString GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex ) +std::u16string_view GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex ) { // check for valid start index sal_Int32 nStringLen = rTokenStr.getLength(); if( rIndex >= nStringLen ) { rIndex = -1; - return OUString(); + return {}; } // find the next token delimiter and return the token substring @@ -498,7 +498,7 @@ OUString GetNextFontToken( const OUString& rTokenStr, sal_Int32& rIndex ) } } - return rTokenStr.copy( nTokenStart, nTokenLen ); + return rTokenStr.subView( nTokenStart, nTokenLen ); } static bool ImplIsFontToken( const OUString& rName, std::u16string_view rToken ) |