diff options
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx index 75c40de267fe..672f78d27d39 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx @@ -112,6 +112,7 @@ #include <unotools/mediadescriptor.hxx> #include <tools/diagnose_ex.h> #include <sal/log.hxx> +#include <o3tl/string_view.hxx> #include <com/sun/star/drawing/FillStyle.hpp> #include <unicode/errorcode.h> @@ -4367,11 +4368,11 @@ static bool lcl_FindInCommand( return bRet; } -static OUString lcl_trim(const OUString& sValue) +static OUString lcl_trim(std::u16string_view sValue) { // it seems, all kind of quotation marks are allowed around index type identifiers // TODO apply this on bookmarks, too, if needed - return sValue.trim().replaceAll("\"","").replaceAll(u"“", "").replaceAll(u"”", ""); + return OUString(o3tl::trim(sValue)).replaceAll("\"","").replaceAll(u"“", "").replaceAll(u"”", ""); } void DomainMapper_Impl::GetCurrentLocale(lang::Locale& rLocale) |