summaryrefslogtreecommitdiff
path: root/scaddins
diff options
context:
space:
mode:
authorLuv Sharma <luvsharma.del@gmail.com>2024-02-05 19:36:14 +0530
committerMike Kaganski <mike.kaganski@collabora.com>2024-02-09 13:38:03 +0100
commit5fef3ebe9efd4d4e8569e620e82771f5560c5524 (patch)
treebe9ef2a76222c2d56fe4eb0f4dff040d996dd355 /scaddins
parent41192a36796155f8cd6ac733f5ef84767edf300f (diff)
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>
Diffstat (limited to 'scaddins')
-rw-r--r--scaddins/qa/analysis.cxx2
-rw-r--r--scaddins/source/analysis/analysishelper.cxx3
2 files changed, 5 insertions, 0 deletions
diff --git a/scaddins/qa/analysis.cxx b/scaddins/qa/analysis.cxx
index 5a8cec506e91..1afe4837e276 100644
--- a/scaddins/qa/analysis.cxx
+++ b/scaddins/qa/analysis.cxx
@@ -52,6 +52,8 @@ CPPUNIT_TEST_FIXTURE(Test, test_getDec2Hex)
CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr,
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,
mxAnalysis->getDec2Hex({}, 110, css::uno::Any(double(10))));
CPPUNIT_ASSERT_EQUAL(u"000000006E"_ustr,
mxAnalysis->getDec2Hex({}, 110, css::uno::Any(float(10))));
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 7a0419c67fe9..721e23e28f87 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -2747,6 +2747,9 @@ bool ScaAnyConverter::getDouble(
}
break;
case uno::TypeClass_HYPER:
+ rfResult = rAny.get<sal_Int64>();
+ break;
+ case uno::TypeClass_UNSIGNED_HYPER:
rfResult = rAny.get<sal_uInt64>();
break;
default: