Changeset 8a5fbb9bc2283fc07942244a7fcf57ce4f4c9d81

Show
Ignore:
Timestamp:
02/23/10 15:15:04 (5 months ago)
Author:
Tobias Bieniek <Tobias.Bieniek@…>
Parents:
d222495a07befc34495660cedc2d66f2bf38c6c6
Children:
0cb3d77c00cc9fcedf143484af95b4d32fd94ac7
git-committer:
Tobias Bieniek <Tobias.Bieniek@gmx.de> / 2010-02-23T13:15:04Z+0100
Message:

test/src/RunWayPointParser: Fixed the WayPointParser? test app

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • test/src/RunWayPointParser.cpp

    r88c201 r8a5fbb  
    3636*/ 
    3737 
    38 #include "WayPointParser.h" 
     38#include "WayPointFile.hpp" 
    3939#include "Waypoint/Waypoints.hpp" 
    4040#include "RasterTerrain.h" 
     
    112112  ascii2unicode(argv[1], path); 
    113113 
    114   WayPointParser parser; 
    115   if (!parser.SetFile(path, false)) { 
     114  WayPointFile* parser = NULL; 
     115  parser = WayPointFile::create(path, 0); 
     116  if (!parser) { 
    116117    fprintf(stderr, "WayPointParser::SetFile() has failed\n"); 
    117118    return 1; 
    118119  } 
    119120 
    120   if (!parser.Parse(way_points, NULL)) { 
     121  if (!parser->Parse(way_points, NULL)) { 
    121122    fprintf(stderr, "WayPointParser::Parse() has failed\n"); 
    122123    return 1;