mirror of
https://github.com/Aitum/obs-aitum-multistream.git
synced 2024-11-25 11:42:58 +01:00
Remove Qt warnings
This commit is contained in:
parent
67182d2721
commit
dd32d29222
@ -99,10 +99,12 @@ void RemoveWidget(QWidget *widget)
|
|||||||
if (!widget)
|
if (!widget)
|
||||||
return;
|
return;
|
||||||
if (widget->layout()) {
|
if (widget->layout()) {
|
||||||
while (QLayoutItem *item = widget->layout()->takeAt(0)) {
|
auto l = widget->layout();
|
||||||
|
QLayoutItem *item;
|
||||||
|
while (l->count() > 0 && (item = l->takeAt(0))) {
|
||||||
RemoveLayoutItem(item);
|
RemoveLayoutItem(item);
|
||||||
}
|
}
|
||||||
delete widget->layout();
|
delete l;
|
||||||
}
|
}
|
||||||
delete widget;
|
delete widget;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user