From 1e61a6eaa7c31344c2eab1882acb2dff7b6cfea3 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sat, 8 Nov 2014 14:19:22 +0100 Subject: Remove sal_True/sal_False from code and comments in sw includes Change-Id: Icfbbae898749196e27199802ec728417d5205bc5 --- sw/inc/node.hxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'sw/inc/node.hxx') diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx index 1098a0f2cbee..a8c7f295e312 100644 --- a/sw/inc/node.hxx +++ b/sw/inc/node.hxx @@ -168,8 +168,8 @@ public: /** Checks if this node is in redlines. - @retval sal_True this node is in redlines - @retval sal_False else + @retval true this node is in redlines + @retval false else */ bool IsInRedlines() const; @@ -452,7 +452,7 @@ public: Access to SwAttrSet. */ inline const SwAttrSet &GetSwAttrSet() const; inline const SwAttrSet *GetpSwAttrSet() const { return static_cast(mpAttrSet.get()); } - inline bool HasSwAttrSet() const { return mpAttrSet ? sal_True : sal_False; } + inline bool HasSwAttrSet() const { return mpAttrSet != nullptr; } virtual SwFmtColl* ChgFmtColl( SwFmtColl* ); SwFmtColl* GetFmtColl() const { return const_cast(static_cast(GetRegisteredIn())); } @@ -628,39 +628,39 @@ inline const SwCntntNode *SwNode::GetCntntNode() const inline bool SwNode::IsStartNode() const { - return ND_STARTNODE & nNodeType ? sal_True : sal_False; + return (ND_STARTNODE & nNodeType) != 0; } inline bool SwNode::IsCntntNode() const { - return ND_CONTENTNODE & nNodeType ? sal_True : sal_False; + return (ND_CONTENTNODE & nNodeType) != 0; } inline bool SwNode::IsEndNode() const { - return ND_ENDNODE == nNodeType ? sal_True : sal_False; + return ND_ENDNODE == nNodeType; } inline bool SwNode::IsTxtNode() const { - return ND_TEXTNODE == nNodeType ? sal_True : sal_False; + return ND_TEXTNODE == nNodeType; } inline bool SwNode::IsTableNode() const { - return ND_TABLENODE == nNodeType ? sal_True : sal_False; + return ND_TABLENODE == nNodeType; } inline bool SwNode::IsSectionNode() const { - return ND_SECTIONNODE == nNodeType ? sal_True : sal_False; + return ND_SECTIONNODE == nNodeType; } inline bool SwNode::IsNoTxtNode() const { - return ND_NOTXTNODE & nNodeType ? sal_True : sal_False; + return (ND_NOTXTNODE & nNodeType) != 0; } inline bool SwNode::IsOLENode() const { - return ND_OLENODE == nNodeType ? sal_True : sal_False; + return ND_OLENODE == nNodeType; } inline bool SwNode::IsGrfNode() const { - return ND_GRFNODE == nNodeType ? sal_True : sal_False; + return ND_GRFNODE == nNodeType; } inline const SwStartNode* SwNode::FindSttNodeByType( SwStartNodeType eTyp ) const -- cgit