Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Sep 15, 2024
1 parent b9ef83a commit 1a94cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oscar_demos/CookiecutterScreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class osc::CookiecutterScreen::Impl final {

bool on_event(const Event& e)
{
if (const auto* quit = dynamic_cast<const QuitEvent*>(&e)) {
if (e.type() == EventType::Quit) {
// the app received a quit request from the operating system (e.g. because the
// user clicked the X, or Alt+F4, etc.)
App::upd().request_quit();
Expand Down

0 comments on commit 1a94cf3

Please sign in to comment.