diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-07-21 18:49:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-22 11:14:37 +0200 |
commit | e7903c01b112665a300350b7e86c2bf65f81b8a7 (patch) | |
tree | fe95ebf0f8e5ff232b1bc453129c2efa23905ca1 /sax | |
parent | e7cc97d1e95fae3271fddafaa7a13bdf7c62b6ee (diff) |
elide some makeStringAndClear() calls
Change-Id: I3b80d0f5b6d39c071242bc6ccc1e4333886c835d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137309
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/converter.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sax/source/tools/converter.cxx b/sax/source/tools/converter.cxx index 2abfe35750c2..b19add9c616a 100644 --- a/sax/source/tools/converter.cxx +++ b/sax/source/tools/converter.cxx @@ -30,6 +30,7 @@ #include <rtl/math.hxx> #include <rtl/character.hxx> #include <sal/log.hxx> +#include <o3tl/string_view.hxx> #include <o3tl/typed_flags_set.hxx> #include <o3tl/unit_conversion.hxx> #include <osl/diagnose.h> @@ -1046,7 +1047,7 @@ static bool convertDurationHelper(double& rfTime, V pStr) double fHour = nHours; double fMin = nMins; double fSec = nSecs; - double fFraction = sDoubleStr.makeStringAndClear().toDouble(); + double fFraction = o3tl::toDouble(sDoubleStr); double fTempTime = fHour / 24; fTempTime += fMin / (24 * 60); fTempTime += fSec / (24 * 60 * 60); |