summaryrefslogtreecommitdiff
path: root/scaddins/source
diff options
context:
space:
mode:
authorLuv Sharma <luvsharma.del@gmail.com>2024-02-01 11:27:49 +0530
committerMike Kaganski <mike.kaganski@collabora.com>2024-02-05 08:31:33 +0100
commit5986ab58db89ee73dc1bc30a7f3800ccb598a3b6 (patch)
tree9b8e9646bbb1547fefa87da73b0786e85cab7b31 /scaddins/source
parent070b4ddda4983773e8a989a116924bee0f651f25 (diff)
tdf#148645 getDec2Hex now takes integer 'places' value
Change-Id: I1491980d5ba693e3a0d899a13aa9615d84468e7a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162860 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'scaddins/source')
-rw-r--r--scaddins/source/analysis/analysishelper.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/scaddins/source/analysis/analysishelper.cxx b/scaddins/source/analysis/analysishelper.cxx
index 9f12da79e39a..7a0419c67fe9 100644
--- a/scaddins/source/analysis/analysishelper.cxx
+++ b/scaddins/source/analysis/analysishelper.cxx
@@ -2737,9 +2737,6 @@ bool ScaAnyConverter::getDouble(
case uno::TypeClass_VOID:
bContainsVal = false;
break;
- case uno::TypeClass_DOUBLE:
- rAny >>= rfResult;
- break;
case uno::TypeClass_STRING:
{
auto pString = o3tl::forceAccess< OUString >( rAny );
@@ -2749,9 +2746,14 @@ bool ScaAnyConverter::getDouble(
bContainsVal = false;
}
break;
+ case uno::TypeClass_HYPER:
+ rfResult = rAny.get<sal_uInt64>();
+ break;
default:
- throw lang::IllegalArgumentException();
+ if( !( rAny >>= rfResult ) )
+ throw lang::IllegalArgumentException();
}
+
return bContainsVal;
}