fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+5
-4
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "handler_video_team.h"
|
||||
#include <utility>
|
||||
#include "object_video_team.h"
|
||||
#include "default_av_menus.h"
|
||||
|
||||
@@ -143,7 +144,7 @@ bool HandlerVideoTeam::init()
|
||||
}
|
||||
|
||||
// create objects
|
||||
for (const Database::AvmVideoTeam &data : qAsConst(dataVec))
|
||||
for (const Database::AvmVideoTeam &data : std::as_const(dataVec))
|
||||
{
|
||||
VideoTeam ddsData = ObjectVideoTeam::toDdsData(data);
|
||||
ObjectVideoTeam *ifs(new ObjectVideoTeam(m_dts, m_db));
|
||||
@@ -168,7 +169,7 @@ bool HandlerVideoTeam::init()
|
||||
QMap<int, VideoTeam> HandlerVideoTeam::videoTeams() const
|
||||
{
|
||||
QMap<int, VideoTeam> ret;
|
||||
for (const auto &videoTeam : qAsConst(m_videoTeamObjMap))
|
||||
for (const auto &videoTeam : std::as_const(m_videoTeamObjMap))
|
||||
ret.insert(videoTeam->getId(), videoTeam->getData());
|
||||
return ret;
|
||||
}
|
||||
@@ -193,7 +194,7 @@ bool HandlerVideoTeam::needDeviceConfig(const VideoTeam &videoTeam) const
|
||||
|
||||
void HandlerVideoTeam::onContextActivated(const ExerciseContext &context)
|
||||
{
|
||||
for (const auto *ifs : qAsConst(m_videoTeamObjMap))
|
||||
for (const auto *ifs : std::as_const(m_videoTeamObjMap))
|
||||
{
|
||||
VideoTeam ddsData = ifs->getData();
|
||||
if (ddsData.exerciseId == context.id())
|
||||
@@ -203,7 +204,7 @@ void HandlerVideoTeam::onContextActivated(const ExerciseContext &context)
|
||||
|
||||
void HandlerVideoTeam::onContextDeactivated(const ExerciseContext &context)
|
||||
{
|
||||
for (ObjectVideoTeam *ifs : qAsConst(m_videoTeamObjMap))
|
||||
for (ObjectVideoTeam *ifs : std::as_const(m_videoTeamObjMap))
|
||||
{
|
||||
if (ifs->exerciseId() == context.id())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user