summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-07-21 09:11:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-07-21 13:20:18 +0200
commit9230c189ebc5bcfd6303bfa7eebcd35488037d00 (patch)
treea6b63ef022535b20ed7747a26dbc95853d18faed /sal
parent5baa40802960eac5c6df897fdbbd59c5e479fca4 (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')
-rw-r--r--sal/rtl/string.cxx6
-rw-r--r--sal/util/sal.map1
2 files changed, 0 insertions, 7 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);
diff --git a/sal/util/sal.map b/sal/util/sal.map
index e2339bdc13ac..e33dde55b8da 100644
--- a/sal/util/sal.map
+++ b/sal/util/sal.map
@@ -757,7 +757,6 @@ PRIVATE_1.7 { # LibreOffice 7.1
PRIVATE_1.8 { # LibreOffice 7.3
global:
- rtl_str_toInt32_WithLength;
rtl_str_toDouble_WithLength;
} PRIVATE_1.7;