CZQCustomClient::~CZQCustomClient() { closesocket(m_socket); ClearNodes(); DeleteCriticalSection(&m_SendCS); }
void nsNSSASN1Tree::InitNodes() { ClearNodes(); mTopNode = new myNode; mTopNode->obj = mASN1Object; InitChildsRecursively(mTopNode); }
//Switches to and from Action Mode bool Level::SwitchMode(bool actionMode) { if(!actionMode) { ClearNodes(); return true; } else { selectedTile = NULL; targetedTile = NULL; return false; } }
void CPointsPart::SetupNodes() { ClearNodes(); switch (m_render_mode) { case ERenderMode::POINTS: SetupPoints(); break; case ERenderMode::OPEN_LINE: SetupLines(m_points.size() - 1); break; case ERenderMode::CLOSED_LINE: SetupLines(m_points.size()); break; default: assert(false); break; } IRenderPart::Init(); __todo() //the sets that init does are needed since the nodes are recreated when the points are changed }
nsNSSASN1Tree::~nsNSSASN1Tree() { ClearNodes(); }