fix: Get rid of warnings on clang-cl (#6528)
This commit is contained in:
@@ -314,6 +314,9 @@ Window &WindowManager::createWindow(WindowType type, bool show, QWidget *parent)
|
||||
assertInGuiThread();
|
||||
|
||||
auto *const realParent = [this, type, parent]() -> QWidget * {
|
||||
(void)this;
|
||||
(void)type;
|
||||
|
||||
if (parent)
|
||||
{
|
||||
// If a parent is explicitly specified, we use that immediately.
|
||||
@@ -696,6 +699,9 @@ void WindowManager::encodeNodeRecursively(SplitNode *node, QJsonObject &obj)
|
||||
obj.insert("items", itemsArr);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
obj.insert("flexh", node->getHorizontalFlex());
|
||||
@@ -737,6 +743,10 @@ void WindowManager::encodeChannel(IndirectChannel channel, QJsonObject &obj)
|
||||
obj.insert("type", "misc");
|
||||
obj.insert("name", channel.get()->getName());
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -923,6 +933,9 @@ void WindowManager::applyWindowLayout(const WindowLayout &layout)
|
||||
window.setWindowState(Qt::WindowMaximized);
|
||||
}
|
||||
break;
|
||||
|
||||
case WindowDescriptor::State::None:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user