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
12925b5c
Commit
12925b5c
authored
Oct 23, 2018
by
Patrick José Pereira
Browse files
Settings: Change from foreach to c++11 for
Signed-off-by:
Patrick José Pereira
<
patrickelectric@gmail.com
>
parent
ea5de155
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Settings/VideoSettings.cc
View file @
12925b5c
...
...
@@ -71,7 +71,7 @@ VideoSettings::VideoSettings(QObject* parent)
#endif
#ifndef QGC_DISABLE_UVC
QList
<
QCameraInfo
>
cameras
=
QCameraInfo
::
availableCameras
();
for
each
(
const
QCameraInfo
&
cameraInfo
,
cameras
)
{
for
(
const
QCameraInfo
&
cameraInfo
:
cameras
)
{
videoSourceList
.
append
(
cameraInfo
.
description
());
}
#endif
...
...
@@ -82,7 +82,7 @@ VideoSettings::VideoSettings(QObject* parent)
videoSourceList
.
insert
(
0
,
videoDisabled
);
}
QVariantList
videoSourceVarList
;
for
each
(
const
QString
&
videoSource
,
videoSourceList
)
{
for
(
const
QString
&
videoSource
:
videoSourceList
)
{
videoSourceVarList
.
append
(
QVariant
::
fromValue
(
videoSource
));
}
_nameToMetaDataMap
[
videoSourceName
]
->
setEnumInfo
(
videoSourceList
,
videoSourceVarList
);
...
...
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