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:
smallmodel 2024-08-24 15:08:42 +02:00
parent c70c578194
commit d64e88451f
No known key found for this signature in database
GPG key ID: A96F163ED4891440
2 changed files with 3 additions and 7 deletions

View file

@ -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;
}
}