sc/source/ui/unoobj/dapiuno.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 898ff23a664a4b114a31941bff9efbaec3dc9e73 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Wed Sep 4 14:27:45 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Thu Sep 5 10:30:15 2024 +0200 no need to use dynamic_cast here Change-Id: Icc5ad5972afdad128db19c6b2d6d0aa55da47f0a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172880 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx index 5e3871481456..e8ace63308bd 100644 --- a/sc/source/ui/unoobj/dapiuno.cxx +++ b/sc/source/ui/unoobj/dapiuno.cxx @@ -1214,8 +1214,9 @@ void SAL_CALL ScDataPilotTableObj::removeModifyListener( const uno::Reference<ut void ScDataPilotTableObj::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { - if ( auto pDataPilotHint = dynamic_cast<const ScDataPilotModifiedHint*>(&rHint) ) + if ( rHint.GetId() == SfxHintId::ScDataPilotModified ) { + auto pDataPilotHint = static_cast<const ScDataPilotModifiedHint*>(&rHint); if (pDataPilotHint->GetName() == aName) Refreshed_Impl(); }