diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-03 15:46:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-09-04 13:02:56 +0200 |
commit | f2d096099a220e4caa2d532a5230785cbdb91eed (patch) | |
tree | 230bcc7ab089d2948c321c6d2df3a089f064bc0b /sc/source/ui/unoobj/docuno.cxx | |
parent | 12f5c69ead6765dd3711db335763caf2df4e049f (diff) |
use less dynamic_cast when broadcasting SfxHint in sc
Change-Id: I25ee079b5b14f82012f868ae6b348fa6982571a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172853
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui/unoobj/docuno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index 9ace7d808b48..e1a4fdb9ec14 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -4527,7 +4527,7 @@ ScTableColumnsObj::~ScTableColumnsObj() void ScTableColumnsObj::Notify( SfxBroadcaster&, const SfxHint& rHint ) { - if ( dynamic_cast<const ScUpdateRefHint*>(&rHint) ) + if ( rHint.GetId() == SfxHintId::ScUpdateRef ) { //! update of references for sheet and its start/end } @@ -4782,7 +4782,7 @@ ScTableRowsObj::~ScTableRowsObj() void ScTableRowsObj::Notify( SfxBroadcaster&, const SfxHint& rHint ) { - if ( dynamic_cast<const ScUpdateRefHint*>(&rHint) ) + if ( rHint.GetId() == SfxHintId::ScUpdateRef ) { //! update of references for sheet and its start/end } @@ -5201,7 +5201,7 @@ ScScenariosObj::~ScScenariosObj() void ScScenariosObj::Notify( SfxBroadcaster&, const SfxHint& rHint ) { - if ( dynamic_cast<const ScUpdateRefHint*>(&rHint) ) + if ( rHint.GetId() == SfxHintId::ScUpdateRef ) { //! update of references for sheet and its start/end } |