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
Valentin Platzgummer
qgroundcontrol
Commits
79a18b13
Commit
79a18b13
authored
May 20, 2019
by
Patrick José Pereira
Browse files
AutoPilotPlugin: Use reference in for loop
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
fce935ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/AutoPilotPlugin.cc
View file @
79a18b13
...
...
@@ -33,7 +33,7 @@ void AutoPilotPlugin::_recalcSetupComplete(void)
{
bool
newSetupComplete
=
true
;
for
(
const
QVariant
componentVariant
:
vehicleComponents
())
{
for
(
const
QVariant
&
componentVariant
:
vehicleComponents
())
{
VehicleComponent
*
component
=
qobject_cast
<
VehicleComponent
*>
(
qvariant_cast
<
QObject
*>
(
componentVariant
));
if
(
component
)
{
if
(
!
component
->
setupComplete
())
{
...
...
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