From 0b42e895efd1d456b0deee4949644f9d20e622ab Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 13 Apr 2017 09:07:03 +0100 Subject: static cast following dynamic cast Change-Id: I34575121851f6b9629fdf2f3dae10be74dc27744 --- svx/source/sdr/properties/itemsettools.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx') diff --git a/svx/source/sdr/properties/itemsettools.cxx b/svx/source/sdr/properties/itemsettools.cxx index 7e5e2bf97484..942b5715ce68 100644 --- a/svx/source/sdr/properties/itemsettools.cxx +++ b/svx/source/sdr/properties/itemsettools.cxx @@ -36,9 +36,9 @@ namespace sdr { ItemChangeBroadcaster::ItemChangeBroadcaster(const SdrObject& rObj) { - if(dynamic_cast( &rObj ) != nullptr) + if (const SdrObjGroup* pGroupObj = dynamic_cast(&rObj)) { - SdrObjListIter aIter(static_cast(rObj), SdrIterMode::DeepNoGroups); + SdrObjListIter aIter(*pGroupObj, SdrIterMode::DeepNoGroups); mpData = new RectangleVector; DBG_ASSERT(mpData, "ItemChangeBroadcaster: No memory (!)"); static_cast(mpData)->reserve(aIter.Count()); -- cgit