summaryrefslogtreecommitdiff
path: root/include/xmloff
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 /include/xmloff
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 'include/xmloff')
-rw-r--r--include/xmloff/xmluconv.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/xmloff/xmluconv.hxx b/include/xmloff/xmluconv.hxx
index 6c391d74fe7f..87d2e883be36 100644
--- a/include/xmloff/xmluconv.hxx
+++ b/include/xmloff/xmluconv.hxx
@@ -54,17 +54,17 @@ template <typename EnumT> struct SvXMLEnumStringMapEntry;
class XMLOFF_DLLPUBLIC SvXMLTokenEnumerator
{
private:
- const OUString& maTokenString;
- sal_Int32 mnNextTokenPos;
+ std::u16string_view maTokenString;
+ size_t mnNextTokenPos;
sal_Unicode mcSeparator;
public:
- SvXMLTokenEnumerator( const OUString& rString, sal_Unicode cSeparator = u' ' );
+ SvXMLTokenEnumerator( std::u16string_view rString, sal_Unicode cSeparator = u' ' );
/** just so no-one accidentally passes a temporary to this, and ends up with this class
* accessing the temporary after the temporary has been deleted. */
SvXMLTokenEnumerator( OUString&& , sal_Unicode cSeparator = u' ' ) = delete;
- bool getNextToken( OUString& rToken );
+ bool getNextToken( std::u16string_view& rToken );
};
/** the SvXMLTypeConverter converts values of various types from