mirror of https://github.com/bsnes-emu/bsnes.git
13 lines
315 B
C++
13 lines
315 B
C++
|
auto mAction::allocate() -> pObject* {
|
||
|
return new pAction(*this);
|
||
|
}
|
||
|
|
||
|
//
|
||
|
|
||
|
auto mAction::remove() -> type& {
|
||
|
if(auto menu = parentMenu()) menu->remove(*this);
|
||
|
if(auto menuBar = parentMenuBar()) menuBar->remove((mMenu&)*this);
|
||
|
if(auto popupMenu = parentPopupMenu()) popupMenu->remove(*this);
|
||
|
return *this;
|
||
|
}
|