refactor(splits): Store container nodes as shared pointers (#6435)
Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -690,7 +690,7 @@ void WindowManager::encodeNodeRecursively(SplitNode *node, QJsonObject &obj)
|
||||
: "vertical");
|
||||
|
||||
QJsonArray itemsArr;
|
||||
for (const std::unique_ptr<SplitNode> &n : node->getChildren())
|
||||
for (const auto &n : node->getChildren())
|
||||
{
|
||||
QJsonObject subObj;
|
||||
WindowManager::encodeNodeRecursively(n.get(), subObj);
|
||||
|
||||
Reference in New Issue
Block a user