diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-11-08 14:19:22 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-11-16 16:52:45 +0100 |
commit | 1e61a6eaa7c31344c2eab1882acb2dff7b6cfea3 (patch) | |
tree | 7b9ea141131432510eaf36d0754806b09281193e /sw/inc/node.hxx | |
parent | e2f4289ff208ab067ab89bcd7aea8a75c3227be3 (diff) |
Remove sal_True/sal_False from code and comments in sw includes
Change-Id: Icfbbae898749196e27199802ec728417d5205bc5
Diffstat (limited to 'sw/inc/node.hxx')
-rw-r--r-- | sw/inc/node.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
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<const SwAttrSet*>(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<SwFmtColl*>(static_cast<const SwFmtColl*>(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 |