summaryrefslogtreecommitdiff
path: root/sw/inc/txtinet.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/txtinet.hxx')
-rw-r--r--sw/inc/txtinet.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/txtinet.hxx b/sw/inc/txtinet.hxx
index 409e46843d6f..ad93d97761e0 100644
--- a/sw/inc/txtinet.hxx
+++ b/sw/inc/txtinet.hxx
@@ -70,7 +70,8 @@ inline const SwTextNode& SwTextINetFormat::GetTextNode() const
inline SwTextNode& SwTextINetFormat::GetTextNode()
{
- return const_cast<SwTextNode&>( const_cast<SwTextINetFormat const*>(this)->GetTextNode() );
+ assert( m_pTextNode );
+ return *m_pTextNode;
}
#endif