mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix compiler warnings
Note that in Dismiss(), checking for `this` is not necessary (original code was generated by the compiler)
This commit is contained in:
parent
c70c578194
commit
d64e88451f
2 changed files with 3 additions and 7 deletions
|
@ -468,13 +468,9 @@ void UIPopupMenu::Dismiss
|
|||
|
||||
{
|
||||
// navigate to the topmost menu
|
||||
if (m_parentMenu)
|
||||
{
|
||||
if (m_parentMenu) {
|
||||
m_parentMenu->Dismiss();
|
||||
}
|
||||
else if (this)
|
||||
{
|
||||
// this is the topmost menu, self-destruct
|
||||
} else {
|
||||
delete this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue