MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / ~Node

Method ~Node

static_libs/filetree/ft_node.cpp:34–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34Node::~Node()
35{
36 if (m_id && *m_id > -1) {
37 switch (type) {
38 case File:
39 App::project()->deleteFile(*m_id);
40 break;
41 case Shape:
42 App::project()->deleteShape(*m_id);
43 break;
44 default:
45 break;
46 }
47 }
48 childs.clear();
49}
50
51Node* Node::child(int row) const
52{

Callers

nothing calls this directly

Calls 3

deleteFileMethod · 0.80
deleteShapeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected