diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-22 11:10:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-22 11:10:24 +0100 |
commit | 7b58b777bd15d5f34375e0325e4838e07f22dedc (patch) | |
tree | 1210e34eed5ce38a17b8c82aa36269b992424910 /sw | |
parent | 9598e9061f76439daa841f991fbec05412826971 (diff) |
-Werror,-Winfinite-recursion
Change-Id: I445302a2f51bbd244fcf7dbf2058efc30ac0b886
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/inc/frame.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/inc/txtfrm.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index a8bae4a1534f..689490570ab9 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -656,7 +656,7 @@ public: SwFrm* GetIndNext() { return ( mpNext || !IsInSct() ) ? mpNext : _GetIndNext(); } - const SwFrm* GetIndNext() const { return static_cast<const SwFrm*>(this)->GetIndNext(); } + const SwFrm* GetIndNext() const { return const_cast<SwFrm*>(this)->GetIndNext(); } sal_uInt16 GetPhyPageNum() const; // page number without offset sal_uInt16 GetVirtPageNum() const; // page number with offset diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx index 3317c270c27d..b29cb18b611a 100644 --- a/sw/source/core/inc/txtfrm.hxx +++ b/sw/source/core/inc/txtfrm.hxx @@ -427,7 +427,7 @@ public: inline SwTwips GetFtnFrmHeight() const; SwTxtFrm *FindFtnRef( const SwTxtFtn *pFtn ); inline const SwTxtFrm *FindFtnRef( const SwTxtFtn *pFtn ) const - { return FindFtnRef( pFtn ); } + { return const_cast<SwTxtFrm *>(this)->FindFtnRef( pFtn ); } void ConnectFtn( SwTxtFtn *pFtn, const SwTwips nDeadLine ); /** |