summaryrefslogtreecommitdiff
path: root/xmloff/source/style/XMLBackgroundImageContext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/style/XMLBackgroundImageContext.cxx')
-rw-r--r--xmloff/source/style/XMLBackgroundImageContext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/style/XMLBackgroundImageContext.cxx b/xmloff/source/style/XMLBackgroundImageContext.cxx
index a32bdde772f1..cd500672c6fc 100644
--- a/xmloff/source/style/XMLBackgroundImageContext.cxx
+++ b/xmloff/source/style/XMLBackgroundImageContext.cxx
@@ -161,7 +161,7 @@ void XMLBackgroundImageContext::ProcessAttrs(
GraphicLocation eNewPos = GraphicLocation_NONE, eTmp;
OUString sValue = aIter.toString();
SvXMLTokenEnumerator aTokenEnum( sValue );
- OUString aToken;
+ std::u16string_view aToken;
bool bHori = false, bVert = false;
bool bOK = true;
while( bOK && aTokenEnum.getNextToken( aToken ) )
@@ -171,7 +171,7 @@ void XMLBackgroundImageContext::ProcessAttrs(
{
bOK = false;
}
- else if( -1 != aToken.indexOf( '%' ) )
+ else if( std::u16string_view::npos != aToken.find( '%' ) )
{
sal_Int32 nPrc = 50;
if (::sax::Converter::convertPercent( nPrc, aToken ))