diff options
author | Noel <noel.grandin@collabora.co.uk> | 2020-12-21 09:39:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-21 11:34:17 +0100 |
commit | 917338c6a81fa5c793d7e4c14f2f031219e64b84 (patch) | |
tree | 7a14dbc0570d2f76084fe11af62c8bb2d1c5dfb1 /xmloff/source/forms/controlpropertyhdl.cxx | |
parent | 39ef79abd0b598cc010261aa6d1eaeabd8a52e95 (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 'xmloff/source/forms/controlpropertyhdl.cxx')
-rw-r--r-- | xmloff/source/forms/controlpropertyhdl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/forms/controlpropertyhdl.cxx b/xmloff/source/forms/controlpropertyhdl.cxx index feced0594b5c..cb3badee22b7 100644 --- a/xmloff/source/forms/controlpropertyhdl.cxx +++ b/xmloff/source/forms/controlpropertyhdl.cxx @@ -149,7 +149,7 @@ namespace xmloff bool bBelow = false; bool bHasPos = false, bHasType = false; - OUString sToken; + std::u16string_view sToken; SvXMLTokenEnumerator aTokenEnum(_rStrImpValue); while (aTokenEnum.getNextToken(sToken)) { @@ -197,13 +197,13 @@ namespace xmloff bool OControlBorderHandler::importXML( const OUString& _rStrImpValue, Any& _rValue, const SvXMLUnitConverter& ) const { - OUString sToken; + std::u16string_view sToken; SvXMLTokenEnumerator aTokens(_rStrImpValue); sal_uInt16 nStyle = 1; while ( aTokens.getNextToken(sToken) // have a new token - && (!sToken.isEmpty()) // really have a new token + && (!sToken.empty()) // really have a new token ) { // try interpreting the token as border style |