summaryrefslogtreecommitdiff
path: root/sw/inc/ndnotxt.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-10 12:52:41 +0200
committerNoel Grandin <noel@peralex.com>2014-11-10 15:22:17 +0200
commit36057c3a11deb3a7c3748d7aafd5e6dd08b58984 (patch)
tree3a707c85eb28ae11e0d0b004928c491fe15d6074 /sw/inc/ndnotxt.hxx
parent34966ecb6fb139d49e55796229aa98e27ef8e4b2 (diff)
loplugin: cstylecast
Change-Id: If7ada4cba0b1098bba304f1ec9b860ec7df75e7a
Diffstat (limited to 'sw/inc/ndnotxt.hxx')
-rw-r--r--sw/inc/ndnotxt.hxx6
1 files changed, 3 insertions, 3 deletions
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<SwGrfFmtColl*>(static_cast<const SwGrfFmtColl*>(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<SwNoTxtNode*>(this) : 0;
}
inline const SwNoTxtNode *SwNode::GetNoTxtNode() const
{
- return ND_NOTXTNODE & nNodeType ? (const SwNoTxtNode*)this : 0;
+ return ND_NOTXTNODE & nNodeType ? static_cast<const SwNoTxtNode*>(this) : 0;
}
#endif // INCLUDED_SW_INC_NDNOTXT_HXX