fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+3
-2
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "main_handler.h"
|
||||
#include <utility>
|
||||
#include "handler_target_area_assignment.h"
|
||||
#include "object_target_area_assignment.h"
|
||||
|
||||
@@ -67,7 +68,7 @@ bool HandlerTargetAreaAssignment::init()
|
||||
|
||||
bool HandlerTargetAreaAssignment::isAreaIdUsedInAny(int areaId)
|
||||
{
|
||||
for (const ObjectTargetAreaAssignment *sample : qAsConst(m_objectMap))
|
||||
for (const ObjectTargetAreaAssignment *sample : std::as_const(m_objectMap))
|
||||
if (sample && (sample->getData().areaId() == areaId))
|
||||
return true;
|
||||
return false;
|
||||
@@ -75,7 +76,7 @@ bool HandlerTargetAreaAssignment::isAreaIdUsedInAny(int areaId)
|
||||
|
||||
bool HandlerTargetAreaAssignment::isTargetDataIdUsedInAny(int targetDataId)
|
||||
{
|
||||
for (const ObjectTargetAreaAssignment *sample : qAsConst(m_objectMap))
|
||||
for (const ObjectTargetAreaAssignment *sample : std::as_const(m_objectMap))
|
||||
if (sample && (sample->getData().targetParticipantId() == targetDataId))
|
||||
return true;
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user