summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-04-13 09:07:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-04-13 09:07:26 +0100
commit0b42e895efd1d456b0deee4949644f9d20e622ab (patch)
tree200075cd717d4d8b61d24710f4e7a850a9e16740 /svx
parentf52535f433ddeac304d2b789a65b5031d1c7d1bb (diff)
static cast following dynamic cast
Change-Id: I34575121851f6b9629fdf2f3dae10be74dc27744
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/properties/itemsettools.cxx4
1 files changed, 2 insertions, 2 deletions
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<const SdrObjGroup*>( &rObj ) != nullptr)
+ if (const SdrObjGroup* pGroupObj = dynamic_cast<const SdrObjGroup*>(&rObj))
{
- SdrObjListIter aIter(static_cast<const SdrObjGroup&>(rObj), SdrIterMode::DeepNoGroups);
+ SdrObjListIter aIter(*pGroupObj, SdrIterMode::DeepNoGroups);
mpData = new RectangleVector;
DBG_ASSERT(mpData, "ItemChangeBroadcaster: No memory (!)");
static_cast<RectangleVector*>(mpData)->reserve(aIter.Count());