diff options
Diffstat (limited to 'src/jalv_qt.cpp')
-rw-r--r-- | src/jalv_qt.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/jalv_qt.cpp b/src/jalv_qt.cpp index a63a508..20f9de6 100644 --- a/src/jalv_qt.cpp +++ b/src/jalv_qt.cpp @@ -196,8 +196,7 @@ QSize FlowLayout::minimumSize() const { QSize size = {}; - QLayoutItem* item = nullptr; - foreach (item, itemList) { + for (QLayoutItem* const item : itemList) { size = size.expandedTo(item->minimumSize()); } @@ -218,8 +217,7 @@ FlowLayout::doLayout(const QRect& rect, bool testOnly) const int y = effectiveRect.y(); int lineHeight = 0; - QLayoutItem* item = nullptr; - foreach (item, itemList) { + for (QLayoutItem* const item : itemList) { QWidget* wid = item->widget(); int spaceX = horizontalSpacing(); |