fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+10
-9
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "handler_effect_show.h"
|
||||
#include <utility>
|
||||
#include "handler_ppm_data.h"
|
||||
#include "handler_tab_data.h"
|
||||
#include "handler_mdm_data.h"
|
||||
@@ -610,7 +611,7 @@ void HandlerEffectShow::removeEffectShowsRelatedToAes(int idAes, bool retract)
|
||||
//-------------------------------------------------------------------------------
|
||||
void HandlerEffectShow::updateEffectShowsRelatedToMineArea(const AreaEffectSimulation::MineArea &data)
|
||||
{
|
||||
for (ObjectEffectShow *obj : qAsConst(m_effectShowObjMap))
|
||||
for (ObjectEffectShow *obj : std::as_const(m_effectShowObjMap))
|
||||
{
|
||||
if (obj->getIdAES() == data.id)
|
||||
{
|
||||
@@ -624,7 +625,7 @@ void HandlerEffectShow::updateEffectShowsRelatedToMineArea(const AreaEffectSimul
|
||||
//-------------------------------------------------------------------------------
|
||||
void HandlerEffectShow::updateEffectShowsRelatedToExplosionArea(const AreaEffectSimulation::ExplosionArea &data)
|
||||
{
|
||||
for (ObjectEffectShow *obj : qAsConst(m_effectShowObjMap))
|
||||
for (ObjectEffectShow *obj : std::as_const(m_effectShowObjMap))
|
||||
{
|
||||
if (obj->getIdAES() == data.id)
|
||||
{
|
||||
@@ -638,7 +639,7 @@ void HandlerEffectShow::updateEffectShowsRelatedToExplosionArea(const AreaEffect
|
||||
|
||||
void HandlerEffectShow::updateEffectShowsRelatedToExplosionCluster(const AreaEffectSimulation::ExplosionCluster &data)
|
||||
{
|
||||
for (ObjectEffectShow *obj : qAsConst(m_effectShowObjMap))
|
||||
for (ObjectEffectShow *obj : std::as_const(m_effectShowObjMap))
|
||||
{
|
||||
if (obj->getIdAES() == data.id)
|
||||
{
|
||||
@@ -652,7 +653,7 @@ void HandlerEffectShow::updateEffectShowsRelatedToExplosionCluster(const AreaEff
|
||||
|
||||
void HandlerEffectShow::updateEffectShowsRelatedToEffectCluster(const AreaEffectSimulation::EffectCluster &data)
|
||||
{
|
||||
for (ObjectEffectShow *obj : qAsConst(m_effectShowObjMap))
|
||||
for (ObjectEffectShow *obj : std::as_const(m_effectShowObjMap))
|
||||
{
|
||||
if (obj->getIdAES() == data.id)
|
||||
{
|
||||
@@ -726,7 +727,7 @@ void HandlerEffectShow::modifyEffectShows(const QVector<Database::EsmEffectShow>
|
||||
//-------------------------------------------------------------------------------
|
||||
void HandlerEffectShow::updateEffectShowOrdersRelatedToAes(int idAes)
|
||||
{
|
||||
for (ObjectEffectShow *obj : qAsConst(m_effectShowObjMap))
|
||||
for (ObjectEffectShow *obj : std::as_const(m_effectShowObjMap))
|
||||
{
|
||||
if (obj->getIdAES() == idAes)
|
||||
triggerEffectShowOrder(obj);
|
||||
@@ -735,7 +736,7 @@ void HandlerEffectShow::updateEffectShowOrdersRelatedToAes(int idAes)
|
||||
//-------------------------------------------------------------------------------
|
||||
void HandlerEffectShow::pauseEffectShowsRelatedToAes(int idAes)
|
||||
{
|
||||
for (ObjectEffectShow *obj : qAsConst(m_effectShowObjMap))
|
||||
for (ObjectEffectShow *obj : std::as_const(m_effectShowObjMap))
|
||||
{
|
||||
if (obj->getIdAES() == idAes)
|
||||
triggerEffectShowStop(obj);
|
||||
@@ -744,7 +745,7 @@ void HandlerEffectShow::pauseEffectShowsRelatedToAes(int idAes)
|
||||
//-------------------------------------------------------------------------------
|
||||
void HandlerEffectShow::continueEffectShowsRelatedToAes(int idAes)
|
||||
{
|
||||
for (ObjectEffectShow *obj : qAsConst(m_effectShowObjMap))
|
||||
for (ObjectEffectShow *obj : std::as_const(m_effectShowObjMap))
|
||||
{
|
||||
if (obj->getIdAES() == idAes)
|
||||
triggerEffectShowContinue(obj);
|
||||
@@ -891,7 +892,7 @@ void HandlerEffectShow::triggerMeteoData(const ObjectEffectShow *ifs)
|
||||
//-----------------------------------------------------------------------------
|
||||
void HandlerEffectShow::onSendMeteoData()
|
||||
{
|
||||
for (ObjectEffectShow *obj : qAsConst(m_effectShowObjMap))
|
||||
for (ObjectEffectShow *obj : std::as_const(m_effectShowObjMap))
|
||||
{
|
||||
const Database::EsmEffectShow &effectShow = obj->getData();
|
||||
if (effectShow.esmParticipantId == -1)
|
||||
@@ -909,7 +910,7 @@ void HandlerEffectShow::onCleanUp()
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "Start Cleanup ";
|
||||
QVector<ObjectEffectShow * > objects;
|
||||
for (ObjectEffectShow *obj : qAsConst(m_effectShowObjMap))
|
||||
for (ObjectEffectShow *obj : std::as_const(m_effectShowObjMap))
|
||||
{
|
||||
const Database::EsmEffectShow &effectShow = obj->getData();
|
||||
if (effectShow.orderConfirmation == static_cast<int>(OrderConfirmation_e::OrderCarriedOut) || effectShow.startTime <= 0 || effectShow.id <= 0)
|
||||
|
||||
+2
-1
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "handler_mdm_data.h"
|
||||
#include <utility>
|
||||
#include "initialization.h"
|
||||
#include <LtsCoordTrans/lts_coord_trans.h>
|
||||
#include "settings.h"
|
||||
@@ -49,7 +50,7 @@ bool HandlerMdmData::getNearestWeather(const Core::GeoPosition2D &pos,
|
||||
double nearestDistanceSquared = std::numeric_limits<double>::max();
|
||||
|
||||
bool found = false;
|
||||
for (const auto &md : qAsConst(m_meteoData))
|
||||
for (const auto &md : std::as_const(m_meteoData))
|
||||
{
|
||||
if (md.isStaticMeteoData)
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user