[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Tue Oct 18 18:02:39 UTC 2016
sw/source/core/draw/dcontact.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 03b8778130509d886a58255a6aa6aa94c5171ea4
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Oct 18 19:02:02 2016 +0100
dynamic_cast followed by static_cast
Change-Id: I079b483f2fce1a55f5690fa5a990cbe40ead6a7a
diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx
index 0200bfa..c282108 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
{
More information about the Libreoffice-commits
mailing list