diff options
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/pdfimport/tree/style.cxx | 2 | ||||
-rw-r--r-- | sdext/source/presenter/PresenterController.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/tree/style.cxx b/sdext/source/pdfimport/tree/style.cxx index 68f36379e172..73a9bd936663 100644 --- a/sdext/source/pdfimport/tree/style.cxx +++ b/sdext/source/pdfimport/tree/style.cxx @@ -167,7 +167,7 @@ OUString StyleContainer::getStyleName( sal_Int32 nStyle ) const else aStyleName = OStringToOUString( rStyle.Name, RTL_TEXTENCODING_ASCII_US ); sal_Int32 nIndex = aStyleName.lastIndexOf( ':' ); - aRet.append( std::u16string_view(aStyleName).substr(nIndex+1) ); + aRet.append( aStyleName.subView(nIndex+1) ); aRet.append( nStyle ); } } diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx index 6d414d5f66ca..050109ff7182 100644 --- a/sdext/source/presenter/PresenterController.cxx +++ b/sdext/source/presenter/PresenterController.cxx @@ -375,13 +375,13 @@ void PresenterController::UpdatePaneTitles() if (nStartIndex < 0) { // Add the remaining part of the string. - sResult.append(std::u16string_view(sTemplate).substr(nIndex)); + sResult.append(sTemplate.subView(nIndex)); break; } else { // Add the part preceding the next %. - sResult.append(std::u16string_view(sTemplate).substr(nIndex, nStartIndex-nIndex)); + sResult.append(sTemplate.subView(nIndex, nStartIndex-nIndex)); // Get the placeholder ++nStartIndex; |