Fix warnings

This commit is contained in:
WarmUpTill
2021-12-04 16:20:04 +01:00
committed by WarmUpTill
parent 69ab101ba3
commit 1785035b96
17 changed files with 21 additions and 21 deletions

View File

@@ -217,7 +217,7 @@ void deleteLayoutItem(QLayoutItem *item)
void clearLayout(QLayout *layout, int afterIdx)
{
QLayoutItem *item;
while (item = layout->takeAt(afterIdx)) {
while ((item = layout->takeAt(afterIdx))) {
if (item->layout()) {
clearLayout(item->layout());
delete item->layout();