mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 18:19:19 +02:00
node delete in editor
This commit is contained in:
10
Names.h
10
Names.h
@@ -62,6 +62,16 @@ public:
|
||||
|
||||
m_itemmap.erase(lookup);
|
||||
}
|
||||
void purge (Type_ *Item)
|
||||
{
|
||||
for (auto it = m_items.begin(); it != m_items.end(); it++) {
|
||||
if (*it == Item) {
|
||||
delete *it;
|
||||
*it = nullptr;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
// locates item with specified name. returns pointer to the item, or nullptr
|
||||
Type_ *
|
||||
find( std::string const &Name ) const {
|
||||
|
||||
Reference in New Issue
Block a user