Commit e3d178f1 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Change loop variable to avoid shadowing

parent 779f64d1
......@@ -157,7 +157,7 @@ bool SSHManagerModel::hasHost(const QString &host) const
// runs in O(N), should be ok for the amount of data peophe have.
for (int i = 0, end = invisibleRootItem()->rowCount(); i < end; i++) {
QStandardItem *iChild = invisibleRootItem()->child(i);
for (int e = 0, end = iChild->rowCount(); e < end; e++) {
for (int e = 0, crend = iChild->rowCount(); e < crend; e++) {
QStandardItem *eChild = iChild->child(e);
const auto data = eChild->data(SSHManagerModel::Roles::SSHRole).value<SSHConfigurationData>();
if (data.host == host) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment