Skip to content

Commit

Permalink
[Lint] Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Gliniak committed Jan 19, 2025
1 parent 9703038 commit 0c13ab3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions src/xenia/ui/window_gtk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ void GTKWindow::ApplyNewMainMenu(MenuItem* old_main_menu) {
}
}

const auto* new_main_menu =
dynamic_cast<const GTKMenuItem*>(GetMainMenu());
const auto* new_main_menu = dynamic_cast<const GTKMenuItem*>(GetMainMenu());
if (!new_main_menu) {
EndBatchedSizeUpdate(destruction_receiver);
return;
Expand Down Expand Up @@ -768,8 +767,7 @@ GTKMenuItem::GTKMenuItem(Type type, const std::string& text,
// Window.
g_object_ref_sink(menu_);
if (GTK_IS_MENU_ITEM(menu_)) {
g_signal_connect(menu_, "activate", G_CALLBACK(ActivateHandler),
this);
g_signal_connect(menu_, "activate", G_CALLBACK(ActivateHandler), this);
}
}
}
Expand Down Expand Up @@ -814,8 +812,7 @@ void GTKMenuItem::OnChildAdded(MenuItem* generic_child_item) {
}
}

void GTKMenuItem::OnChildRemoved(MenuItem* generic_child_item) {
}
void GTKMenuItem::OnChildRemoved(MenuItem* generic_child_item) {}

} // namespace ui

Expand Down
1 change: 0 additions & 1 deletion src/xenia/ui/window_gtk.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class GTKWindow : public Window {
void BeginBatchedSizeUpdate();
void EndBatchedSizeUpdate(WindowDestructionReceiver& destruction_receiver);


// Translates a gtk virtual key to xenia ui::VirtualKey
static VirtualKey TranslateVirtualKey(guint keyval);

Expand Down

0 comments on commit 0c13ab3

Please sign in to comment.