summaryrefslogtreecommitdiff
path: root/navit/gui/qml/routeProxy.h
diff options
context:
space:
mode:
Diffstat (limited to 'navit/gui/qml/routeProxy.h')
-rw-r--r--navit/gui/qml/routeProxy.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/navit/gui/qml/routeProxy.h b/navit/gui/qml/routeProxy.h
index a2fb4c793..fb76c492c 100644
--- a/navit/gui/qml/routeProxy.h
+++ b/navit/gui/qml/routeProxy.h
@@ -14,13 +14,13 @@ public slots:
QList<struct attr> destinations=this->_routeDestinations();
struct pcoord *coords=(struct pcoord*)malloc(sizeof(struct pcoord)*(destinations.size()+1)); //Additional destination included
- for (QList<struct attr>::const_iterator iter=destinations.begin();iter!=destinations.end();iter++) {
+ for (QList<struct attr>::const_iterator iter=destinations.begin();iter!=destinations.end();iter++) {
coords[counter]=*(iter->u.pcoord);
counter++;
}
//Add new one
- coords[counter]=*(this->object->currentPoint->pc());
+ coords[counter]=*(this->object->currentPoint->pc());
//Propagate to route engine
route_set_destinations(navit_get_route(this->object->nav),coords,counter+1,1);
@@ -30,7 +30,7 @@ public slots:
QList<struct attr> destinations=this->_routeDestinations();
for (QList<struct attr>::const_iterator iter=destinations.begin();iter!=destinations.end();iter++) {
NGQPoint helperPoint(this->object,iter->u.pcoord,MapPoint);
- dbg(lvl_debug,"Added destination %s\n",helperPoint.coordString().toLocal8Bit().constData());
+ dbg(lvl_debug,"Added destination %s",helperPoint.coordString().toLocal8Bit().constData());
}
//dbg(lvl_debug,QString::number(_itemId).toStdString().c_str());