MCPcopy Create free account
hub / github.com/The-Powder-Toy/The-Powder-Toy / ClearRef

Method ClearRef

src/lua/LuaWindow.cpp:467–477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void LuaWindow::ClearRef(LuaComponent *luaComponent)
468{
469 auto it = grabbedComponents.find(luaComponent);
470 if (it != grabbedComponents.end())
471 {
472 it->second.Clear();
473 it->first->owner_ref = it->second;
474 it->first->SetParentWindow(nullptr);
475 grabbedComponents.erase(it);
476 }
477}
478
479LuaWindow::~LuaWindow()
480{

Callers 1

~LuaComponentMethod · 0.80

Calls 3

endMethod · 0.45
ClearMethod · 0.45
SetParentWindowMethod · 0.45

Tested by

no test coverage detected