diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-07-21 09:11:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-07-21 13:20:18 +0200 |
commit | 9230c189ebc5bcfd6303bfa7eebcd35488037d00 (patch) | |
tree | a6b63ef022535b20ed7747a26dbc95853d18faed /sal/rtl | |
parent | 5baa40802960eac5c6df897fdbbd59c5e479fca4 (diff) |
Use existing rtl_str_toInt64_WithLength
...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
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/string.cxx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sal/rtl/string.cxx b/sal/rtl/string.cxx index 6fc2df75698d..660f22552b0c 100644 --- a/sal/rtl/string.cxx +++ b/sal/rtl/string.cxx @@ -567,12 +567,6 @@ sal_Int32 SAL_CALL rtl_str_toInt32(const char* pStr, sal_Int16 nRadix) SAL_THROW return rtl::str::toInt32(pStr, nRadix); } -sal_Int32 SAL_CALL rtl_str_toInt32_WithLength(const char* pStr, sal_Int16 nRadix, - sal_Int32 nStrLength) SAL_THROW_EXTERN_C() -{ - return rtl::str::toInt32_WithLength(pStr, nRadix, nStrLength); -} - sal_Int64 SAL_CALL rtl_str_toInt64(const char* pStr, sal_Int16 nRadix) SAL_THROW_EXTERN_C() { return rtl::str::toInt64(pStr, nRadix); |