diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-06 10:20:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-06 10:21:53 +0200 |
commit | f52449e43b14f6118e324e92986c61eddf7ada38 (patch) | |
tree | fc0c2f60a915c079a2914f783ebbd4d302185d22 /sw | |
parent | a7b86140d74039995bd4d312790244c1e2d4b501 (diff) |
-Werror,-Wnull-conversion
...presumably this is what was meant in 89d39bc100aabf5dccbe77c0b5c0c85736e85b39
"tdf#94559: 4th step to remove rtti.hxx"
Change-Id: I844939fe4cd1f452747ac3cf3410659bba748efb
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/frmedt/fefly1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/frmedt/fefly1.cxx b/sw/source/core/frmedt/fefly1.cxx index b36d65fe113c..903e4ec8c61b 100644 --- a/sw/source/core/frmedt/fefly1.cxx +++ b/sw/source/core/frmedt/fefly1.cxx @@ -311,7 +311,7 @@ const SwFrameFormat* SwFEShell::IsFlyInFly() SwFrameFormat *pFormat = FindFrameFormat( pObj ); if( pFormat && FLY_AT_FLY == pFormat->GetAnchor().GetAnchorId() ) { - const SwFrm* pFly = nullptr ? + const SwFrm* pFly = dynamic_cast<SwVirtFlyDrawObj *>(pObj) != nullptr ? static_cast<SwVirtFlyDrawObj*>(pObj)->GetFlyFrm()->GetAnchorFrm() : static_cast<SwDrawContact*>(GetUserCall(pObj))->GetAnchorFrm( pObj ); OSL_ENSURE( pFly, "IsFlyInFly: Where's my anchor?" ); @@ -394,7 +394,7 @@ Point SwFEShell::FindAnchorPos( const Point& rAbsPos, bool bMoveIt ) if ( FLY_AS_CHAR == nAnchorId ) return aRet; - bool bFlyFrame = nullptr; + bool bFlyFrame = dynamic_cast<SwVirtFlyDrawObj *>(pObj) != nullptr; SwFlyFrm* pFly = 0L; const SwFrm* pFooterOrHeader = NULL; |