remove unnecessary warnings, initialize correctly

This commit is contained in:
Moritz Kobitzsch
2016-05-02 15:32:28 +02:00
committed by Patrick Niklaus
parent d12a95b4ef
commit 59168e21b4
5 changed files with 23 additions and 19 deletions
+1 -2
View File
@@ -35,8 +35,7 @@ namespace
// invalidate a step and set its content to nothing
void invalidateStep(RouteStep &step)
{
step = {};
step.maneuver.instruction = TurnInstruction::NO_TURN();
step = getInvalidRouteStep();
}
void print(const std::vector<RouteStep> &steps)