summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/tree/style.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/pdfimport/tree/style.cxx')
-rw-r--r--sdext/source/pdfimport/tree/style.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdext/source/pdfimport/tree/style.cxx b/sdext/source/pdfimport/tree/style.cxx
index 87d0479a564a..b00920a62f93 100644
--- a/sdext/source/pdfimport/tree/style.cxx
+++ b/sdext/source/pdfimport/tree/style.cxx
@@ -25,6 +25,7 @@
#include <rtl/ustrbuf.hxx>
#include <algorithm>
+#include <string_view>
using namespace pdfi;
@@ -167,7 +168,7 @@ OUString StyleContainer::getStyleName( sal_Int32 nStyle ) const
else
aStyleName = OStringToOUString( rStyle.Name, RTL_TEXTENCODING_ASCII_US );
sal_Int32 nIndex = aStyleName.lastIndexOf( ':' );
- aRet.appendCopy( aStyleName, nIndex+1 );
+ aRet.append( std::u16string_view(aStyleName).substr(nIndex+1) );
aRet.append( nStyle );
}
}