diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-10 09:39:17 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-10 15:22:15 +0200 |
commit | 5cb6144f2119aa1dcce161724abfc22ead1d20b5 (patch) | |
tree | 1296cb64a64b4f8bb7ec633ee605c9ef80a5dee7 /sw/inc/format.hxx | |
parent | 7623a4832441691a486673cea981ef32b8d72ae7 (diff) |
loplugin: cstylecast
Change-Id: Ie57f543681790e662f6ac7d074ccb37925999790
Diffstat (limited to 'sw/inc/format.hxx')
-rw-r--r-- | sw/inc/format.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx index b576048ebdf1..321bd8846dee 100644 --- a/sw/inc/format.hxx +++ b/sw/inc/format.hxx @@ -108,7 +108,7 @@ public: @return count of deleted hints. */ virtual sal_uInt16 ResetAllFmtAttr(); - inline SwFmt* DerivedFrom() const { return (SwFmt*)GetRegisteredIn(); } + inline SwFmt* DerivedFrom() const { return const_cast<SwFmt*>(static_cast<const SwFmt*>(GetRegisteredIn())); } inline bool IsDefault() const { return DerivedFrom() == 0; } inline OUString GetName() const { return aFmtName; } |