summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/ftnfrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/layout/ftnfrm.cxx')
-rw-r--r--sw/source/core/layout/ftnfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/ftnfrm.cxx b/sw/source/core/layout/ftnfrm.cxx
index 14790e03eed2..78566f1a1535 100644
--- a/sw/source/core/layout/ftnfrm.cxx
+++ b/sw/source/core/layout/ftnfrm.cxx
@@ -2812,7 +2812,7 @@ const SwContentFrame* SwFootnoteFrame::GetRefFromAttr() const
SwContentFrame* SwFootnoteFrame::GetRefFromAttr()
{
assert(pAttr && "invalid Attribute");
- SwTextNode& rTNd = (SwTextNode&)pAttr->GetTextNode();
+ SwTextNode& rTNd = const_cast<SwTextNode&>(pAttr->GetTextNode());
SwPosition aPos( rTNd, SwIndex( &rTNd, pAttr->GetStart() ));
SwContentFrame* pCFrame = rTNd.getLayoutFrame( getRootFrame(), nullptr, &aPos, false );
return pCFrame;