diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-24 10:39:18 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-25 10:09:51 +0200 |
commit | c7ab37e17c514b1c86fca10ff8734e9752f458fa (patch) | |
tree | 9cbfd797462575ff6ba02eca9444587fca984368 /sw/source/core/inc/flyfrms.hxx | |
parent | 64572975221c9fafed8363393d96f6a11b14e92c (diff) |
loplugin: cstylecast
Change-Id: I30e5d05641f7dea749820db4dc7ed87342d0c35a
Diffstat (limited to 'sw/source/core/inc/flyfrms.hxx')
-rw-r--r-- | sw/source/core/inc/flyfrms.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/inc/flyfrms.hxx b/sw/source/core/inc/flyfrms.hxx index 49dfe5b3c2b0..ef011259007c 100644 --- a/sw/source/core/inc/flyfrms.hxx +++ b/sw/source/core/inc/flyfrms.hxx @@ -225,20 +225,20 @@ public: inline void SwFlyInCntFrm::InvalidateLayout() const { - ((SwFlyInCntFrm*)this)->bInvalidLayout = true; + const_cast<SwFlyInCntFrm*>(this)->bInvalidLayout = true; } inline void SwFlyInCntFrm::InvalidateCntnt() const { - ((SwFlyInCntFrm*)this)->bInvalidCntnt = true; + const_cast<SwFlyInCntFrm*>(this)->bInvalidCntnt = true; } inline void SwFlyInCntFrm::ValidateLayout() const { - ((SwFlyInCntFrm*)this)->bInvalidLayout = false; + const_cast<SwFlyInCntFrm*>(this)->bInvalidLayout = false; } inline void SwFlyInCntFrm::ValidateCntnt() const { - ((SwFlyInCntFrm*)this)->bInvalidCntnt = false; + const_cast<SwFlyInCntFrm*>(this)->bInvalidCntnt = false; } #endif |