diff options
author | Noel <noelgrandin@gmail.com> | 2020-12-17 13:33:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-12-17 14:05:21 +0100 |
commit | 95283f63fd1095121c30f7fc23259f03a5382955 (patch) | |
tree | 120fe3ecfafd9604f94b11a9c08768647910b950 /include/xmloff | |
parent | a8e882b5aa7436395e9e3da0316f45690260166b (diff) |
use more string_view in SvXMLUnitConverter
Change-Id: Id40a071e1abf0bf2e13217e8745fdf266010c1c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107872
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r-- | include/xmloff/xmluconv.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/xmloff/xmluconv.hxx b/include/xmloff/xmluconv.hxx index 40edab42cdfd..3a9950edbd64 100644 --- a/include/xmloff/xmluconv.hxx +++ b/include/xmloff/xmluconv.hxx @@ -136,7 +136,7 @@ public: not found in the map, this method will return false */ template<typename EnumT> static bool convertEnum( EnumT& rEnum, - const OUString& rValue, + std::u16string_view rValue, const SvXMLEnumMapEntry<EnumT> *pMap ) { sal_uInt16 nTmp; @@ -151,7 +151,7 @@ public: not found in the map, this method will return false */ template<typename EnumT> static bool convertEnum( EnumT& rEnum, - const OUString& rValue, + std::u16string_view rValue, const SvXMLEnumStringMapEntry<EnumT> *pMap ) { sal_uInt16 nTmp; @@ -213,7 +213,7 @@ public: /** convert string to ::basegfx::B3DVector */ static bool convertB3DVector( ::basegfx::B3DVector& rVector, - const OUString& rValue ); + std::u16string_view rValue ); /** convert string to ::basegfx::B3DVector */ static bool convertB3DVector( ::basegfx::B3DVector& rVector, @@ -253,7 +253,7 @@ public: bool *pEncoded=nullptr ) const; /** convert string (hex) to number (sal_uInt32) */ static bool convertHex( sal_uInt32& nVal, - const OUString& rValue ); + std::u16string_view rValue ); /** convert number (sal_uInt32) to string (hex) */ static void convertHex( OUStringBuffer& rBuffer, @@ -261,11 +261,11 @@ public: private: static bool convertEnumImpl( sal_uInt16& rEnum, - const OUString& rValue, + std::u16string_view rValue, const SvXMLEnumMapEntry<sal_uInt16> *pMap ); static bool convertEnumImpl( sal_uInt16& rEnum, - const OUString& rValue, + std::u16string_view rValue, const SvXMLEnumStringMapEntry<sal_uInt16> *pMap ); static bool convertEnumImpl( OUStringBuffer& rBuffer, |