apply some code analyzer recommendations

This commit is contained in:
2024-11-20 20:01:58 +03:00
parent b65bf5e640
commit a3e88f792d
8 changed files with 24 additions and 38 deletions

View File

@@ -91,7 +91,7 @@ void CDPultWindow::apply(bool sessions) {
X.lock();
PIVector<PIDeque<int>> x_list = X.enabledList();
X.unlock();
piForeachC(PIDeque<int> & p, x_list)
for (const auto & p: x_list)
X.enable(X[p]);
((CDItemModel *)widgetX->view->model())->updateModel();
widgetX->view->expandAll();