diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-26 15:34:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-30 08:14:35 +0200 |
commit | dc50abb7f972c53fcca08d2ac3627e7848456520 (patch) | |
tree | df9e2923e0896d6caa72d64f594a680368cc6f89 /sc | |
parent | fc4f7db59152f606b6aa88cf32197700959d0f8b (diff) |
use more TypedWhichInfo
Change-Id: I406c5d070e3dd197b2cf819d63212d5a40a8eadc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152309
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx index 93b74d70e68e..c4055320d88f 100644 --- a/sc/source/ui/app/scmod.cxx +++ b/sc/source/ui/app/scmod.cxx @@ -418,9 +418,7 @@ void ScModule::Execute( SfxRequest& rReq ) case SID_PSZ_FUNCTION: if (pReqArgs) { - auto const & p = pReqArgs->Get(SID_PSZ_FUNCTION); - assert(dynamic_cast<const SfxUInt32Item*>(&p) && "wrong Parameter"); - const SfxUInt32Item& rItem = static_cast<const SfxUInt32Item&>(p); + const SfxUInt32Item & rItem = pReqArgs->Get(SID_PSZ_FUNCTION); ScAppOptions aNewOpts( GetAppOptions() ); aNewOpts.SetStatusFunc( rItem.GetValue() ); |