diff options
Diffstat (limited to 'sw/source/core/inc/rootfrm.hxx')
-rw-r--r-- | sw/source/core/inc/rootfrm.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/inc/rootfrm.hxx b/sw/source/core/inc/rootfrm.hxx index 3fa2f4a1b71f..8d91b2cc93a4 100644 --- a/sw/source/core/inc/rootfrm.hxx +++ b/sw/source/core/inc/rootfrm.hxx @@ -299,8 +299,8 @@ public: */ bool MakeTblCrsrs( SwTableCursor& ); - void DisallowTurbo() const { ((SwRootFrm*)this)->bTurboAllowed = false; } - void ResetTurboFlag() const { ((SwRootFrm*)this)->bTurboAllowed = true; } + void DisallowTurbo() const { const_cast<SwRootFrm*>(this)->bTurboAllowed = false; } + void ResetTurboFlag() const { const_cast<SwRootFrm*>(this)->bTurboAllowed = true; } bool IsTurboAllowed() const { return bTurboAllowed; } void SetTurbo( const SwCntntFrm *pCntnt ) { pTurbo = pCntnt; } void ResetTurbo() { pTurbo = 0; } @@ -372,7 +372,7 @@ public: inline long SwRootFrm::GetBrowseWidth() const { if ( !bBrowseWidthValid ) - ((SwRootFrm*)this)->ImplCalcBrowseWidth(); + const_cast<SwRootFrm*>(this)->ImplCalcBrowseWidth(); return nBrowseWidth; } @@ -384,7 +384,7 @@ inline void SwRootFrm::InvalidateBrowseWidth() inline void SwRootFrm::SetVirtPageNum( const bool bOf) const { - ((SwRootFrm*)this)->bIsVirtPageNum = bOf; + const_cast<SwRootFrm*>(this)->bIsVirtPageNum = bOf; } #endif // INCLUDED_SW_SOURCE_CORE_INC_ROOTFRM_HXX |