diff options
author | Noel <noelgrandin@gmail.com> | 2020-11-24 14:33:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-11-25 07:13:26 +0100 |
commit | c8a2550b6a014c05cd4d0ad6a72122f79ce301af (patch) | |
tree | 516947d3d50162ca2f52a759f846679f0bb8b526 /include/xmloff | |
parent | aac9c35c7405859a38f634ee95b8aba5f62db84d (diff) |
use string_view for the parsing in sax utils
Change-Id: Ifd7430501318684f9999c90dd36c1ca965373947
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106499
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/xmloff')
-rw-r--r-- | include/xmloff/xmluconv.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/xmloff/xmluconv.hxx b/include/xmloff/xmluconv.hxx index 647472d2b7b5..d4796bb82d94 100644 --- a/include/xmloff/xmluconv.hxx +++ b/include/xmloff/xmluconv.hxx @@ -111,7 +111,7 @@ public: /** convert string to measure with meCoreMeasureUnit, using optional min and max values*/ bool convertMeasureToCore( sal_Int32& rValue, - const OUString& rString, + std::u16string_view rString, sal_Int32 nMin = SAL_MIN_INT32, sal_Int32 nMax = SAL_MAX_INT32) const; @@ -173,7 +173,7 @@ public: double fNumber) const; /** convert string to double number (using ::rtl::math) and DO convert. */ - bool convertDouble(double& rValue, const OUString& rString) const; + bool convertDouble(double& rValue, std::u16string_view rString) const; /** get the Null Date of the XModel and set it to the UnitConverter */ bool setNullDate ( @@ -186,7 +186,7 @@ public: /** convert ISO Date Time String to double */ bool convertDateTime(double& fDateTime, - const OUString& rString); + std::u16string_view rString); /// these 2 functions use tools Date, so they're not yet moved to sax @@ -197,7 +197,7 @@ public: bool bAddTimeIf0AM = false); /** convert ISO Date Time String to double */ static bool convertDateTime( double& fDateTime, - const OUString& rString, + std::u16string_view rString, const css::util::Date& aNullDate); |