Use existing rtl_str_toInt64_WithLength

Desktop / LibreOffice - Stephan Bergmann [redhat.com] - 21 July 2021 11:20 UTC

...like it is also already done in LineParser::readInt32 in sdext/source/pdfimport/wrapper/wrapper.cxx (esp. since the code should be changed to use C++17 std::from_chars once that is available in all our baselines), reverting again the introduction of rtl_str_toInt32_WithLength in b1df9c67349cf4cc5be4128d797aefb87f50e38f "[API CHANGE] reduce cost of numeric conversion"

Change-Id: I2789f8ec55c8d89150d1c68e6b353a1d2e1d1703 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119301

9230c189ebc5 Use existing rtl_str_toInt64_WithLength
include/rtl/string.h | 25 -------------------------
sal/rtl/string.cxx | 6 ------
sal/util/sal.map | 1 -
sax/source/tools/fastattribs.cxx | 12 ++++++++++--
4 files changed, 10 insertions(+), 34 deletions(-)

Upstream: cgit.freedesktop.org


  • Share