qt6: Use more 'auto' to fix some Wconversion errors

This commit is contained in:
Sergio Martins
2020-12-19 22:54:06 +00:00
parent fdc97fecaf
commit 6b846fcdff
3 changed files with 47 additions and 47 deletions

View File

@@ -653,7 +653,7 @@ static QWidgetOrQuick *qtTopLevelForHWND(HWND hwnd)
template <typename T>
static WidgetType* qtTopLevelUnderCursor_impl(QPoint globalPos, const QVector<QWindow*> &windows, T windowBeingDragged)
{
for (int i = windows.size() -1; i >= 0; --i) {
for (auto i = windows.size() -1; i >= 0; --i) {
QWindow *window = windows.at(i);
auto tl = KDDockWidgets::Private::widgetForWindow(window);