fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "main_handler_sqlite.h"
|
||||
#include <utility>
|
||||
|
||||
#include "db_reader.h"
|
||||
#include "static_publisher.h"
|
||||
@@ -277,16 +278,16 @@ void MainHandlerSqlite::replayTimeMaybeJumpedOverlays(qint64 curTime)
|
||||
// not really optimal
|
||||
QSet<int> oldOverlayIds;
|
||||
oldOverlayIds.reserve(m_currentVisibleOverlays.size());
|
||||
for (const FilterInformation &overlay : qAsConst(m_currentVisibleOverlays))
|
||||
for (const FilterInformation &overlay : std::as_const(m_currentVisibleOverlays))
|
||||
oldOverlayIds += overlay.overlayId;
|
||||
|
||||
m_curOverlayArrayIdx = -1;
|
||||
m_currentVisibleOverlays.clear();
|
||||
maybeAddNewOverlay(curTime);
|
||||
|
||||
for (const FilterInformation &overlay : qAsConst(m_currentVisibleOverlays))
|
||||
for (const FilterInformation &overlay : std::as_const(m_currentVisibleOverlays))
|
||||
oldOverlayIds -= overlay.overlayId;
|
||||
for (const int overlayId : qAsConst(oldOverlayIds))
|
||||
for (const int overlayId : std::as_const(oldOverlayIds))
|
||||
emit removeOverlay(overlayId);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include "static_publisher.h"
|
||||
#include <utility>
|
||||
#include <QCryptographicHash>
|
||||
#include <QJsonDocument>
|
||||
#include <QtCore/QTimer>
|
||||
@@ -157,7 +158,7 @@ void StaticPublisher::publishMainStructureElement(const std::shared_ptr<Infrastr
|
||||
return;
|
||||
|
||||
QHash<qint64, qint64> seId2mseId;
|
||||
for (const auto &mse : qAsConst(mainStructureElements))
|
||||
for (const auto &mse : std::as_const(mainStructureElements))
|
||||
{
|
||||
auto mseDds = InfrastructureManagement::Database::convert(mse);
|
||||
auto itContSe = structureElements.constFind(mse.id);
|
||||
@@ -188,7 +189,7 @@ void StaticPublisher::publishMainStructureElement(const std::shared_ptr<Infrastr
|
||||
|
||||
InfrastructureManagement::MainFootprint mf;
|
||||
InfrastructureManagement::FootprintElement elem;
|
||||
for (const QMap<int, InfrastructureManagement::Database::IsmStructureElementFootprint> &cont : qAsConst(footprintSorted))
|
||||
for (const QMap<int, InfrastructureManagement::Database::IsmStructureElementFootprint> &cont : std::as_const(footprintSorted))
|
||||
{
|
||||
if (cont.empty())
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user