Some more loplugin:cstylecast: starmath
Change-Id: I0d1c743343d8f84c0491957ad43d8b16d9490622
This commit is contained in:
@@ -231,13 +231,7 @@ public:
|
|||||||
}
|
}
|
||||||
protected:
|
protected:
|
||||||
/** Sets parent on children of this node */
|
/** Sets parent on children of this node */
|
||||||
void ClaimPaternity(){
|
inline void ClaimPaternity();
|
||||||
SmNode* pNode;
|
|
||||||
sal_uInt16 nSize = GetNumSubNodes();
|
|
||||||
for (sal_uInt16 i = 0; i < nSize; i++)
|
|
||||||
if (NULL != (pNode = GetSubNode(i)))
|
|
||||||
pNode->SetParent((SmStructureNode*)this); //Cast is valid if we have children
|
|
||||||
}
|
|
||||||
private:
|
private:
|
||||||
SmStructureNode* aParentNode;
|
SmStructureNode* aParentNode;
|
||||||
void DumpAsDot(std::ostream &out, OUString* label, int number, int& id, int parent) const;
|
void DumpAsDot(std::ostream &out, OUString* label, int number, int& id, int parent) const;
|
||||||
@@ -352,8 +346,13 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
inline void SmNode::ClaimPaternity() {
|
||||||
|
SmNode* pNode;
|
||||||
|
sal_uInt16 nSize = GetNumSubNodes();
|
||||||
|
for (sal_uInt16 i = 0; i < nSize; i++)
|
||||||
|
if (NULL != (pNode = GetSubNode(i)))
|
||||||
|
pNode->SetParent(static_cast<SmStructureNode*>(this)); //Cast is valid if we have children
|
||||||
|
}
|
||||||
|
|
||||||
/** Abstract base class for all visible node
|
/** Abstract base class for all visible node
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user