mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
LP-2 remove unused variable
This commit is contained in:
parent
b629a7f69f
commit
f1598e0a51
@ -293,10 +293,8 @@ void modelMapProxy::rowsInserted(const QModelIndex &parent, int first, int last)
|
|||||||
{
|
{
|
||||||
Q_UNUSED(parent);
|
Q_UNUSED(parent);
|
||||||
|
|
||||||
|
|
||||||
for (int x = first; x < last + 1; x++) {
|
for (int x = first; x < last + 1; x++) {
|
||||||
QModelIndex index;
|
QModelIndex index;
|
||||||
WayPointItem *item;
|
|
||||||
internals::PointLatLng latlng;
|
internals::PointLatLng latlng;
|
||||||
distBearingAltitude distBearing;
|
distBearingAltitude distBearing;
|
||||||
double altitude;
|
double altitude;
|
||||||
@ -318,9 +316,9 @@ void modelMapProxy::rowsInserted(const QModelIndex &parent, int first, int last)
|
|||||||
index = model->index(x, flightDataModel::ALTITUDE);
|
index = model->index(x, flightDataModel::ALTITUDE);
|
||||||
altitude = index.data(Qt::DisplayRole).toDouble();
|
altitude = index.data(Qt::DisplayRole).toDouble();
|
||||||
if (relative) {
|
if (relative) {
|
||||||
item = myMap->WPInsert(distBearing, desc, x);
|
myMap->WPInsert(distBearing, desc, x);
|
||||||
} else {
|
} else {
|
||||||
item = myMap->WPInsert(latlng, altitude, desc, x);
|
myMap->WPInsert(latlng, altitude, desc, x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user