diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-10-18 19:02:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-18 19:02:02 +0100 |
commit | 03b8778130509d886a58255a6aa6aa94c5171ea4 (patch) | |
tree | 385250d2f667230f04cbc400799d89af45a294ea /sw | |
parent | 0a7d06cfc37f94f8a7571f023e1b78b6451a5367 (diff) |
dynamic_cast followed by static_cast
Change-Id: I079b483f2fce1a55f5690fa5a990cbe40ead6a7a
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/draw/dcontact.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx index 0200bfaa9681..c282108e1a6a 100644 --- a/sw/source/core/draw/dcontact.cxx +++ b/sw/source/core/draw/dcontact.cxx @@ -99,9 +99,9 @@ SwFrameFormat *FindFrameFormat( SdrObject *pObj ) { SwFrameFormat* pRetval = nullptr; - if ( dynamic_cast<const SwVirtFlyDrawObj*>( pObj) != nullptr ) + if (SwVirtFlyDrawObj* pFlyDrawObj = dynamic_cast<SwVirtFlyDrawObj*>(pObj)) { - pRetval = static_cast<SwVirtFlyDrawObj*>(pObj)->GetFormat(); + pRetval = pFlyDrawObj->GetFormat(); } else { |