From 36057c3a11deb3a7c3748d7aafd5e6dd08b58984 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 10 Nov 2014 12:52:41 +0200 Subject: loplugin: cstylecast Change-Id: If7ada4cba0b1098bba304f1ec9b860ec7df75e7a --- sw/inc/ndnotxt.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sw/inc/ndnotxt.hxx') diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx index 875c75f0e1f0..26dfa94de0f1 100644 --- a/sw/inc/ndnotxt.hxx +++ b/sw/inc/ndnotxt.hxx @@ -53,7 +53,7 @@ public: virtual SwCntntFrm *MakeFrm( SwFrm* ) SAL_OVERRIDE; - inline SwGrfFmtColl *GetGrfColl() const { return (SwGrfFmtColl*)GetRegisteredIn(); } + inline SwGrfFmtColl *GetGrfColl() const { return const_cast(static_cast(GetRegisteredIn())); } virtual Size GetTwipSize() const = 0; @@ -93,11 +93,11 @@ public: // Inline methods from Node.hxx - we know TxtNode only here!! inline SwNoTxtNode *SwNode::GetNoTxtNode() { - return ND_NOTXTNODE & nNodeType ? (SwNoTxtNode*)this : 0; + return ND_NOTXTNODE & nNodeType ? static_cast(this) : 0; } inline const SwNoTxtNode *SwNode::GetNoTxtNode() const { - return ND_NOTXTNODE & nNodeType ? (const SwNoTxtNode*)this : 0; + return ND_NOTXTNODE & nNodeType ? static_cast(this) : 0; } #endif // INCLUDED_SW_INC_NDNOTXT_HXX -- cgit