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

@@ -140,7 +140,7 @@ bool QCDCore::bindWidget(QWidget * w) {
return false;
}
PIVector<CDType *> ak = K.root().children();
piForeachC(CDType * k, ak) {
for (const auto * k: ak) {
if (!on.endsWith(PI2QString(k->pathString().join("_")))) continue;
if (bindWidget(w, *k)) return true;
}

View File

@@ -344,7 +344,7 @@ void CDView::cd_receivedX() {
X.lock();
PIVector<PIDeque<int>> xl = X.enabledList();
// piCout << "X" << xl.size();
piForeachC(PIDeque<int> & x, xl) {
for (const auto & x: xl) {
CDType & t(X[x]);
// piCout << t;
// piCout << t.path();