mirror of
https://github.com/Aitum/obs-aitum-multistream.git
synced 2024-11-22 02:12:40 +01:00
Remove Qt warnings
This commit is contained in:
parent
67182d2721
commit
dd32d29222
@ -99,10 +99,12 @@ void RemoveWidget(QWidget *widget)
|
||||
if (!widget)
|
||||
return;
|
||||
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);
|
||||
}
|
||||
delete widget->layout();
|
||||
delete l;
|
||||
}
|
||||
delete widget;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user