summaryrefslogtreecommitdiff
path: root/sw/inc/fmtcol.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-10 09:39:17 +0200
committerNoel Grandin <noel@peralex.com>2014-11-10 15:22:15 +0200
commit5cb6144f2119aa1dcce161724abfc22ead1d20b5 (patch)
tree1296cb64a64b4f8bb7ec633ee605c9ef80a5dee7 /sw/inc/fmtcol.hxx
parent7623a4832441691a486673cea981ef32b8d72ae7 (diff)
loplugin: cstylecast
Change-Id: Ie57f543681790e662f6ac7d074ccb37925999790
Diffstat (limited to 'sw/inc/fmtcol.hxx')
-rw-r--r--sw/inc/fmtcol.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/fmtcol.hxx b/sw/inc/fmtcol.hxx
index 82ee3a9c365b..ce8a5bfc2afd 100644
--- a/sw/inc/fmtcol.hxx
+++ b/sw/inc/fmtcol.hxx
@@ -229,7 +229,7 @@ public:
{ return aSubCondition.pFldExpression; }
void SetCondition( sal_uLong nCond, sal_uLong nSubCond );
- SwTxtFmtColl* GetTxtFmtColl() const { return (SwTxtFmtColl*)GetRegisteredIn(); }
+ SwTxtFmtColl* GetTxtFmtColl() const { return const_cast<SwTxtFmtColl*>(static_cast<const SwTxtFmtColl*>(GetRegisteredIn())); }
void RegisterToFormat( SwFmt& );
};