Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
e3d178f1
Commit
e3d178f1
authored
Mar 03, 2022
by
Kurt Hindenburg
Browse files
Change loop variable to avoid shadowing
parent
779f64d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/SSHManager/sshmanagermodel.cpp
View file @
e3d178f1
...
...
@@ -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
,
cr
end
=
iChild
->
rowCount
();
e
<
cr
end
;
e
++
)
{
QStandardItem
*
eChild
=
iChild
->
child
(
e
);
const
auto
data
=
eChild
->
data
(
SSHManagerModel
::
Roles
::
SSHRole
).
value
<
SSHConfigurationData
>
();
if
(
data
.
host
==
host
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment