Skip to content

Commit

Permalink
modernize use auto
Browse files Browse the repository at this point in the history
done with clang-tidy

run-clang-tidy -p build -header-filter='.*' -config="{Checks: '*', CheckOptions: [{key: UseAssignment, value: true}]}" -checks='-*,modernize-use-auto' -fix

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
  • Loading branch information
mgallien committed Feb 21, 2023
1 parent c22c449 commit 5b048aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/3rdparty/kirigami/wheelhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ bool WheelHandler::eventFilter(QObject *watched, QEvent *event)
m_horizontalScrollBar->setProperty("interactive", true);
}
}
QWheelEvent *wheelEvent = static_cast<QWheelEvent *>(event);
auto *wheelEvent = static_cast<QWheelEvent *>(event);

// NOTE: On X11 with libinput, pixelDelta is identical to angleDelta when using a mouse that shouldn't use pixelDelta.
// If faulty pixelDelta, reset pixelDelta to (0,0).
Expand Down Expand Up @@ -603,7 +603,7 @@ bool WheelHandler::eventFilter(QObject *watched, QEvent *event)
if (!m_keyNavigationEnabled) {
break;
}
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
auto *keyEvent = static_cast<QKeyEvent *>(event);
bool horizontalScroll = keyEvent->modifiers() & m_defaultHorizontalScrollModifiers;
switch (keyEvent->key()) {
case Qt::Key_Up: return scrollUp();
Expand Down

0 comments on commit 5b048aa

Please sign in to comment.