apply some code analyzer recommendations
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user