summaryrefslogtreecommitdiff
path: root/sw/source/core/inc/rootfrm.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-24 10:39:18 +0200
committerNoel Grandin <noel@peralex.com>2014-11-25 10:09:51 +0200
commitc7ab37e17c514b1c86fca10ff8734e9752f458fa (patch)
tree9cbfd797462575ff6ba02eca9444587fca984368 /sw/source/core/inc/rootfrm.hxx
parent64572975221c9fafed8363393d96f6a11b14e92c (diff)
loplugin: cstylecast
Change-Id: I30e5d05641f7dea749820db4dc7ed87342d0c35a
Diffstat (limited to 'sw/source/core/inc/rootfrm.hxx')
-rw-r--r--sw/source/core/inc/rootfrm.hxx8
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