Commit e7d29a87 authored by Daniel Agar's avatar Daniel Agar

MissionManager: use const reference in for loop

parent 8db8877c
......@@ -221,7 +221,7 @@ void TransectStyleComplexItemTest::_testFollowTerrain(void) {
QCOMPARE(_transectStyleItem->transects().size(), 1);
for (const auto& transect : _transectStyleItem->transects()) {
QCOMPARE(transect.size(), 4);
for (const auto pt : transect) {
for (const auto& pt : transect) {
QCOMPARE(pt.coord.altitude(), expectedTerrainValues.front());
expectedTerrainValues.pop_front();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment