Adds immediate migration results
This commit is contained in:
2395 files changed
+357322
-2524
No files matched your search
+3
-2
@@ -1,4 +1,5 @@
|
||||
#include "buildingmanager.h"
|
||||
#include <utility>
|
||||
|
||||
#include "iconcomponent.h"
|
||||
#include "modelsplittercomponent.h"
|
||||
@@ -284,7 +285,7 @@ void BuildingManager::updateShotDuration(unsigned int newDuration_s)
|
||||
QMutexLocker locker(&m_mutexShots);
|
||||
|
||||
|
||||
for (Building *building : qAsConst(mBuildings))
|
||||
for (Building *building : std::as_const(mBuildings))
|
||||
{
|
||||
|
||||
for (Shot *pShot : building->mShots)
|
||||
@@ -2688,7 +2689,7 @@ void BuildingManager::createRoomNames(dtEntity::EntityId buildingid, Building& b
|
||||
const QPointF qpfCenter(posX.x(), posX.y());
|
||||
QPointF nearestVertex;
|
||||
qreal distance = 999999999;
|
||||
for (const QPointF &vertex : qAsConst(roomObb.mPoly))
|
||||
for (const QPointF &vertex : std::as_const(roomObb.mPoly))
|
||||
{
|
||||
|
||||
qreal dis = (vertex-qpfCenter).manhattanLength();
|
||||
|
||||
Reference in new issue
Block a user