MCPcopy Create free account
hub / github.com/Illation/ETEngine / ~EditorSplitNode

Method ~EditorSplitNode

Engine/source/EtEditor/Layout/EditorSplitNode.cpp:38–54  ·  view source on GitHub ↗

--------------------------------- EditorSplitNode::d-tor

Source from the content-addressed store, hash-verified

36// EditorSplitNode::d-tor
37//
38EditorSplitNode::~EditorSplitNode()
39{
40 if (m_Paned == nullptr)
41 {
42 return;
43 }
44
45 // in case of collapsing, the surviving child should be set to nullptr in the split before calling the destructor
46 SafeDelete(m_Child1);
47 SafeDelete(m_Child2);
48
49 // if this nodes UI is unlinked from its attachment, we need to manually delete the UI
50 if (m_Paned->get_parent() == nullptr)
51 {
52 delete m_Paned;
53 }
54}
55
56//---------------------------------
57// EditorSplitNode::InitInternal

Callers

nothing calls this directly

Calls 1

SafeDeleteFunction · 0.85

Tested by

no test coverage detected