tdf#148645 getDec2Hex now takes integer 'places' value (updated)

Change-Id: Ibc793f7654c9ec9b1a96b3caf2c16f2fde14c030
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163005
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
This commit is contained in:
Luv Sharma 2024-02-05 19:36:14 +05:30 committed by Mike Kaganski
parent 41192a3679
commit 5fef3ebe9e
2 changed files with 5 additions and 0 deletions

View file

@ -51,6 +51,8 @@ CPPUNIT_TEST_FIXTURE(Test, test_getDec2Hex)
mxAnalysis->getDec2Hex({}, 110, css::uno::Any(sal_uInt32(10)))); mxAnalysis->getDec2Hex({}, 110, css::uno::Any(sal_uInt32(10))));
CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr, CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr,
mxAnalysis->getDec2Hex({}, 110, css::uno::Any(sal_Int64(10)))); mxAnalysis->getDec2Hex({}, 110, css::uno::Any(sal_Int64(10))));
CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr,
mxAnalysis->getDec2Hex({}, 110, css::uno::Any(sal_uInt64(10))));
CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr, CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr,
mxAnalysis->getDec2Hex({}, 110, css::uno::Any(double(10)))); mxAnalysis->getDec2Hex({}, 110, css::uno::Any(double(10))));
CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr, CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr,

View file

@ -2747,6 +2747,9 @@ bool ScaAnyConverter::getDouble(
} }
break; break;
case uno::TypeClass_HYPER: case uno::TypeClass_HYPER:
rfResult = rAny.get<sal_Int64>();
break;
case uno::TypeClass_UNSIGNED_HYPER:
rfResult = rAny.get<sal_uInt64>(); rfResult = rAny.get<sal_uInt64>();
break; break;
default: default: