MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / SetLowercaseNode

Method SetLowercaseNode

src/fco/fconametbl.cpp:87–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85
86
87void cFCONameTblNode::SetLowercaseNode(cFCONameTblNode* pNewNode)
88{
89 ASSERT(pNewNode != 0); // doesn't make sense to set this to NULL
90
91 if (mpLowerNode)
92 mpLowerNode->Release();
93 if (pNewNode == this)
94 {
95 // we can't store a pointer to ourselves, since reference counting doesn't go well
96 // with circular pointers, so we will represent this with a NULL pointer
97 mpLowerNode = NULL;
98 return;
99 }
100 pNewNode->AddRef();
101 mpLowerNode = pNewNode;
102}
103
104void cFCONameTblNode::SetString(const TSTRING& newStr)
105{

Callers 1

CreateNodeMethod · 0.80

Calls 2

ReleaseMethod · 0.45
AddRefMethod · 0.45

Tested by

no test coverage detected