diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-25 15:53:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 06:08:51 +0000 |
commit | a7ea18ffe715776cb0e2b39e98569c75605ee332 (patch) | |
tree | 1e32da87f2ad0e8d111ba8ed99180bb6b4cf2a77 /sw/inc/txtinet.hxx | |
parent | eca5ea9f79181d45cd7fbabe2313617d3025818a (diff) |
loplugin:expandablemethods in sw
Change-Id: Ibc9edc28f4041235ab30c026bd3774bd74b7e960
Reviewed-on: https://gerrit.libreoffice.org/30287
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/txtinet.hxx')
-rw-r--r-- | sw/inc/txtinet.hxx | 3 |
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 |