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);
|
||||
|
||||
|
||||
for (int x = first; x < last + 1; x++) {
|
||||
QModelIndex index;
|
||||
WayPointItem *item;
|
||||
internals::PointLatLng latlng;
|
||||
distBearingAltitude distBearing;
|
||||
double altitude;
|
||||
@ -318,9 +316,9 @@ void modelMapProxy::rowsInserted(const QModelIndex &parent, int first, int last)
|
||||
index = model->index(x, flightDataModel::ALTITUDE);
|
||||
altitude = index.data(Qt::DisplayRole).toDouble();
|
||||
if (relative) {
|
||||
item = myMap->WPInsert(distBearing, desc, x);
|
||||
myMap->WPInsert(distBearing, desc, x);
|
||||
} else {
|
||||
item = myMap->WPInsert(latlng, altitude, desc, x);
|
||||
myMap->WPInsert(latlng, altitude, desc, x);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user