summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2017-10-05 22:00:35 +0200
committerArmin Le Grand <Armin.Le.Grand@cib.de>2017-10-20 10:17:20 +0200
commitfd1f9044f0616981776ba8e7c315a1cbc045a865 (patch)
tree9e0db55c0883bf4006dae893815988b0691fa8e9
parent35f828b68ec267479eca3aabe034f8bf81221502 (diff)
RotGrfFlyFrame: Clang error fixfeature/RotGrfFlyFrame
Change-Id: Ifae68d4d5a17446f01c97ce2e94cd0419217259e
-rw-r--r--sw/source/core/draw/dview.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/core/draw/dview.cxx b/sw/source/core/draw/dview.cxx
index 7db8e4946abd..0935ddbd637c 100644
--- a/sw/source/core/draw/dview.cxx
+++ b/sw/source/core/draw/dview.cxx
@@ -829,11 +829,7 @@ void SwDrawView::CheckPossibilities()
pFrame = pFly->GetAnchorFrame();
if ( pFly->Lower() && pFly->Lower()->IsNoTextFrame() )
{
- // SwNoTextNode& rNoTNd = const_cast<SwNoTextNode&>(*static_cast<const SwNoTextNode*>((static_cast<const SwContentFrame*>(pFly->Lower()))->GetNode()));
- // SwGrfNode* pGrfNd = rNoTNd.GetGrfNode();
- // SwOLENode* pOLENd = rNoTNd.GetOLENode();
-
- const SwContentFrame* pCntFr = const_cast<SwContentFrame*>(static_cast<const SwContentFrame*>(pFly->Lower()));
+ const SwContentFrame* pCntFr(static_cast<const SwContentFrame*>(pFly->Lower()));
const SwOLENode* pOLENd = pCntFr->GetNode()->GetOLENode();
const SwGrfNode* pGrfNd = pCntFr->GetNode()->GetGrfNode();