diff options
Diffstat (limited to 'sw/source/core/layout/atrfrm.cxx')
-rw-r--r-- | sw/source/core/layout/atrfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 2f6516d4f22a..1a459f5d14cb 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -127,7 +127,7 @@ static void lcl_DelHFFormat( SwClient *pToRemove, SwFrameFormat *pFormat ) { // If there is a Cursor registered in one of the nodes, we need to call the // ParkCursor in an (arbitrary) shell. - SwFormatContent& rCnt = (SwFormatContent&)pFormat->GetContent(); + SwFormatContent& rCnt = const_cast<SwFormatContent&>(pFormat->GetContent()); if ( rCnt.GetContentIdx() ) { SwNode *pNode = nullptr; |