Changeset 8a5fbb9bc2283fc07942244a7fcf57ce4f4c9d81
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r88c201
|
r8a5fbb
|
|
| 36 | 36 | */ |
| 37 | 37 | |
| 38 | | #include "WayPointParser.h" |
| | 38 | #include "WayPointFile.hpp" |
| 39 | 39 | #include "Waypoint/Waypoints.hpp" |
| 40 | 40 | #include "RasterTerrain.h" |
| … |
… |
|
| 112 | 112 | ascii2unicode(argv[1], path); |
| 113 | 113 | |
| 114 | | WayPointParser parser; |
| 115 | | if (!parser.SetFile(path, false)) { |
| | 114 | WayPointFile* parser = NULL; |
| | 115 | parser = WayPointFile::create(path, 0); |
| | 116 | if (!parser) { |
| 116 | 117 | fprintf(stderr, "WayPointParser::SetFile() has failed\n"); |
| 117 | 118 | return 1; |
| 118 | 119 | } |
| 119 | 120 | |
| 120 | | if (!parser.Parse(way_points, NULL)) { |
| | 121 | if (!parser->Parse(way_points, NULL)) { |
| 121 | 122 | fprintf(stderr, "WayPointParser::Parse() has failed\n"); |
| 122 | 123 | return 1; |