Coding style fixes

This commit is contained in:
Cheng Zhao 2017-12-20 18:48:09 +09:00
parent 5bf16c2495
commit e4770c7604
3 changed files with 9 additions and 10 deletions

View file

@ -60,9 +60,10 @@ void MenuViews::PopupAt(Window* window, int x, int y, int positioning_item) {
}
void MenuViews::ClosePopupAt(int32_t window_id) {
if (menu_runners_[window_id])
if (menu_runners_[window_id]) {
menu_runners_[window_id]->Cancel();
menu_runners_.erase(window_id);
menu_runners_.erase(window_id);
}
}
// static