From 6f3c52bb37f52f57fea6479f1da6c1828fbd85fe Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Mar 2015 15:31:55 +0100 Subject: const_cast: convert some C-style casts and remove some redundant ones Change-Id: Icb14a036ea9d7636359b6bc5e0af17568c0d54cb --- sw/source/core/inc/txtfrm.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw/source/core/inc/txtfrm.hxx') diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx index b29cb18b611a..8cf26338c56f 100644 --- a/sw/source/core/inc/txtfrm.hxx +++ b/sw/source/core/inc/txtfrm.hxx @@ -397,7 +397,7 @@ public: inline void ResetBlinkPor() const; inline bool HasBlinkPor() const { return bBlinkPor; } inline void SetAnimation() const - { ( (SwTxtFrm*)this )->bHasAnimation = true; } + { const_cast(this)->bHasAnimation = true; } inline bool HasAnimation() const { return bHasAnimation; } inline bool IsSwapped() const { return bIsSwapped; } -- cgit v1.2.3