From c7b898df4d452746399621f6adc8e7da088f0f3a Mon Sep 17 00:00:00 2001 From: Noel Date: Sun, 7 Mar 2021 18:41:56 +0200 Subject: clean up some more dynamic/static casting using a hacked version of the staticdynamic plugin and some judgement Change-Id: I5e6668b19320025e419f84bebceade4239577729 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112137 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/undo/areasave.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc') diff --git a/sc/source/ui/undo/areasave.cxx b/sc/source/ui/undo/areasave.cxx index 3d50fba4f826..a46adae4017c 100644 --- a/sc/source/ui/undo/areasave.cxx +++ b/sc/source/ui/undo/areasave.cxx @@ -156,12 +156,12 @@ std::unique_ptr ScAreaLinkSaveCollection::CreateFromDo for (sal_uInt16 i=0; i( pBase) != nullptr) + if (auto pAreaLink = dynamic_cast( pBase)) { if (!pColl) pColl.reset(new ScAreaLinkSaveCollection); - pColl->push_back( ScAreaLinkSaver( *static_cast(pBase ) ) ); + pColl->push_back( ScAreaLinkSaver( *pAreaLink ) ); } } } -- cgit