From 6f6262f9b11aa041b59390c1a34eabaea3842dd6 Mon Sep 17 00:00:00 2001 From: Patrick Brosi Date: Wed, 12 Oct 2022 12:30:22 +0200 Subject: [PATCH] adjust ShapevlMain.cpp to new parser structure --- src/shapevl/ShapevlMain.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/shapevl/ShapevlMain.cpp b/src/shapevl/ShapevlMain.cpp index 9e8c642..bade8d9 100644 --- a/src/shapevl/ShapevlMain.cpp +++ b/src/shapevl/ShapevlMain.cpp @@ -47,10 +47,10 @@ void eval(const std::vector* paths, std::string path = (*paths)[myFeed]; LOG(DEBUG) << "Reading eval feed " << path << " ..."; ad::cppgtfs::gtfs::Feed feed; - ad::cppgtfs::Parser p; try { - p.parse(&feed, path); + ad::cppgtfs::Parser p(path); + p.parse(&feed); } catch (const ad::cppgtfs::ParserException& ex) { LOG(ERROR) << "Could not parse GTFS feed " << path << ", reason was:"; std::cerr << ex.what() << std::endl; @@ -204,8 +204,8 @@ int main(int argc, char** argv) { try { LOG(DEBUG) << "Reading ground truth feed" << groundTruthFeedPath << " ..."; - ad::cppgtfs::Parser p; - p.parse(&groundTruthFeed, groundTruthFeedPath); + ad::cppgtfs::Parser p(groundTruthFeedPath); + p.parse(&groundTruthFeed); } catch (const ad::cppgtfs::ParserException& ex) { LOG(ERROR) << "Could not parse input GTFS feed, reason was:"; std::cerr << ex.what() << std::endl;