summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-07 18:41:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-08 07:40:01 +0100
commitc7b898df4d452746399621f6adc8e7da088f0f3a (patch)
treeeb4cb09ceef899c3015724b6d3f81f1e8a4a6ce1 /sc
parent04e7a34a19b3658de57c4f2b3b0fa8445b01f199 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/undo/areasave.cxx4
1 files changed, 2 insertions, 2 deletions
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> ScAreaLinkSaveCollection::CreateFromDo
for (sal_uInt16 i=0; i<nLinkCount; i++)
{
::sfx2::SvBaseLink* pBase = rLinks[i].get();
- if (dynamic_cast<const ScAreaLink*>( pBase) != nullptr)
+ if (auto pAreaLink = dynamic_cast<ScAreaLink*>( pBase))
{
if (!pColl)
pColl.reset(new ScAreaLinkSaveCollection);
- pColl->push_back( ScAreaLinkSaver( *static_cast<ScAreaLink*>(pBase ) ) );
+ pColl->push_back( ScAreaLinkSaver( *pAreaLink ) );
}
}
}