summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlithlp.cxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2020-12-21 09:39:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-21 11:34:17 +0100
commit917338c6a81fa5c793d7e4c14f2f031219e64b84 (patch)
tree7a14dbc0570d2f76084fe11af62c8bb2d1c5dfb1 /sw/source/filter/xml/xmlithlp.cxx
parent39ef79abd0b598cc010261aa6d1eaeabd8a52e95 (diff)
use std::u16string_view in SvXMLTokenEnumerator
Change-Id: I1194441063047637adc20c8e37bb717fdb787714 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108073 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/xmlithlp.cxx')
-rw-r--r--sw/source/filter/xml/xmlithlp.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/xml/xmlithlp.cxx b/sw/source/filter/xml/xmlithlp.cxx
index eb2bd25dbad4..552170949d91 100644
--- a/sw/source/filter/xml/xmlithlp.cxx
+++ b/sw/source/filter/xml/xmlithlp.cxx
@@ -74,14 +74,14 @@ const sal_uInt16 aBorderWidths[] =
DEF_LINE_WIDTH_1,
};
-bool sw_frmitems_parseXMLBorder( const OUString& rValue,
+bool sw_frmitems_parseXMLBorder( std::u16string_view rValue,
const SvXMLUnitConverter& rUnitConverter,
bool& rHasStyle, sal_uInt16& rStyle,
bool& rHasWidth, sal_uInt16& rWidth,
sal_uInt16& rNamedWidth,
bool& rHasColor, Color& rColor )
{
- OUString aToken;
+ std::u16string_view aToken;
SvXMLTokenEnumerator aTokens( rValue );
rHasStyle = false;
@@ -93,7 +93,7 @@ bool sw_frmitems_parseXMLBorder( const OUString& rValue,
rNamedWidth = USHRT_MAX;
sal_Int32 nTemp;
- while( aTokens.getNextToken( aToken ) && !aToken.isEmpty() )
+ while( aTokens.getNextToken( aToken ) && !aToken.empty() )
{
if( !rHasWidth &&
SvXMLUnitConverter::convertEnum( rNamedWidth, aToken,