diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-10 12:52:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-10 15:22:17 +0200 |
commit | 36057c3a11deb3a7c3748d7aafd5e6dd08b58984 (patch) | |
tree | 3a707c85eb28ae11e0d0b004928c491fe15d6074 /sw/inc/fchrfmt.hxx | |
parent | 34966ecb6fb139d49e55796229aa98e27ef8e4b2 (diff) |
loplugin: cstylecast
Change-Id: If7ada4cba0b1098bba304f1ec9b860ec7df75e7a
Diffstat (limited to 'sw/inc/fchrfmt.hxx')
-rw-r--r-- | sw/inc/fchrfmt.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/fchrfmt.hxx b/sw/inc/fchrfmt.hxx index 4e70c617d986..40c259b7675e 100644 --- a/sw/inc/fchrfmt.hxx +++ b/sw/inc/fchrfmt.hxx @@ -22,8 +22,8 @@ #include <svl/poolitem.hxx> #include <calbck.hxx> #include <format.hxx> +#include <charfmt.hxx> -class SwCharFmt; class SwTxtCharFmt; class IntlWrapper; @@ -66,7 +66,7 @@ public: virtual bool GetInfo( SfxPoolItem& rInfo ) const SAL_OVERRIDE; void SetCharFmt( SwFmt* pFmt ) { pFmt->Add(this); } - SwCharFmt* GetCharFmt() const { return (SwCharFmt*)GetRegisteredIn(); } + SwCharFmt* GetCharFmt() const { return const_cast<SwCharFmt*>(static_cast<const SwCharFmt*>(GetRegisteredIn())); } }; #endif |