Fix clazy warnings about unused trivial variables

This commit is contained in:
Sergio Martins
2020-05-17 19:15:59 +01:00
parent 8477fdc7e1
commit ea56d20959
2 changed files with 1 additions and 2 deletions

View File

@@ -436,9 +436,9 @@ QWidgetOrQuick *DragController::qtTopLevelUnderCursor() const
#ifdef KDDOCKWIDGETS_QTWIDGETS
QPoint globalPos = QCursor::pos();
auto topLevels = qApp->topLevelWidgets();
if (qApp->platformName() == QLatin1String("windows")) { // So -platform offscreen on Windows doesn't use this
auto topLevels = qApp->topLevelWidgets();
# if defined(Q_OS_WIN)
POINT globalNativePos;
if (!GetCursorPos(&globalNativePos))