diff options
Diffstat (limited to 'sc/source/ui/unoobj/datauno.cxx')
-rw-r--r-- | sc/source/ui/unoobj/datauno.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx index 677a6852fe2c..2f2bdae144a4 100644 --- a/sc/source/ui/unoobj/datauno.cxx +++ b/sc/source/ui/unoobj/datauno.cxx @@ -1554,13 +1554,12 @@ void ScDatabaseRangeObj::Notify( SfxBroadcaster&, const SfxHint& rHint ) if ( rHint.GetId() == SfxHintId::Dying ) pDocShell = nullptr; - else if ( dynamic_cast<const ScDBRangeRefreshedHint*>(&rHint) ) + else if ( auto pRefreshHint = dynamic_cast<const ScDBRangeRefreshedHint*>(&rHint) ) { ScDBData* pDBData = GetDBData_Impl(); - const ScDBRangeRefreshedHint& rRef = static_cast<const ScDBRangeRefreshedHint&>(rHint); ScImportParam aParam; pDBData->GetImportParam(aParam); - if (aParam == rRef.GetImportParam()) + if (aParam == pRefreshHint->GetImportParam()) Refreshed_Impl(); } } |