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 "shootback_controller.h"
|
||||
#include <utility>
|
||||
#include "object_shootback_area.h"
|
||||
#include "object_shootback_target.h"
|
||||
#include "object_target_area_assignment.h"
|
||||
@@ -275,7 +276,7 @@ void ShootbackController::onParticipantPositionChanged(const ParticipantManageme
|
||||
DEBUG_LOG(m_logger) << " areaId = " << it.key() << "-> partIdRef VORHERXX" << toString(it.value());
|
||||
}
|
||||
|
||||
for (const auto &area : qAsConst(objMap))
|
||||
for (const auto &area : std::as_const(objMap))
|
||||
{
|
||||
if (area)
|
||||
updateInternal_participantPerArea(*area, posData);
|
||||
@@ -537,7 +538,7 @@ void ShootbackController::updateInternalLos(const QSet<int> &changingAssignmentI
|
||||
// Note: m_participantsPerArea is up-to-date
|
||||
QSet<int> areasWithPart = areasWithParticipant(changedParticipantId);
|
||||
DEBUG_LOG(m_logger) << LOGFUNCTION << " areasWithPart=" << areasWithPart.size();
|
||||
for (auto curAreaId : qAsConst(areasWithPart))
|
||||
for (auto curAreaId : std::as_const(areasWithPart))
|
||||
DEBUG_LOG(m_logger) << LOGFUNCTION << " -> curAreaId=" << curAreaId;
|
||||
|
||||
if (!idIsRelevantHelper(areasWithPart, areaId))
|
||||
@@ -601,7 +602,7 @@ bool ShootbackController::updateInternalLosSingleAssignment(ObjectTargetAreaAssi
|
||||
if (m_participantsPerArea.contains(areaId))
|
||||
{
|
||||
QSet<int> &partIdRef = m_participantsPerArea[areaId];
|
||||
for (auto participantId : qAsConst(partIdRef))
|
||||
for (auto participantId : std::as_const(partIdRef))
|
||||
{
|
||||
// check lineOfSight:
|
||||
DEBUG_LOG(m_logger) << LOGFUNCTION << " check lineOfSight for: assignmentId=" << assignmentId
|
||||
@@ -681,7 +682,7 @@ void ShootbackController::syncExternal()
|
||||
std::vector<int32_t> visiPartPerTargetStd;
|
||||
visiPartPerTargetStd.reserve(visiPartPerTarget.size());
|
||||
INFO_LOG(m_logger) << LOGFUNCTION << " targetId " << target->getId() << ", visiPartPerTarget = " << toString(visiPartPerTarget);
|
||||
for (auto id : qAsConst(visiPartPerTarget))
|
||||
for (auto id : std::as_const(visiPartPerTarget))
|
||||
visiPartPerTargetStd.push_back(id);
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user