Skip to content

Commit

Permalink
MainWindow::eventFilter: add static keyword for evts (commaai#23521)
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee authored Jan 14, 2022
1 parent b75e410 commit 785180d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/ui/qt/window.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void MainWindow::closeSettings() {
}

bool MainWindow::eventFilter(QObject *obj, QEvent *event) {
const QSet<QEvent::Type> evts({QEvent::MouseButtonPress, QEvent::MouseMove,
const static QSet<QEvent::Type> evts({QEvent::MouseButtonPress, QEvent::MouseMove,
QEvent::TouchBegin, QEvent::TouchUpdate, QEvent::TouchEnd});

if (evts.contains(event->type())) {
Expand Down

0 comments on commit 785180d

Please sign in to comment.