Skip to content
Snippets Groups Projects
Commit 96b94804 authored by Romain BERNARD's avatar Romain BERNARD
Browse files

init string as "" to prevent segfaults in assignments

parent 801c85de
No related branches found
No related tags found
1 merge request!1Transit algorithm implementation
......@@ -17,7 +17,9 @@ private:
std::vector<int> _nodes; //index according to Graph::_nodes, sorted according to line order (start -> terminus)
std::vector<std::vector<int>> _timetables; //list of list of timestamps for each node start order (size of _timetables must remain constant throughout the whole vector
public:
Line() = default;
Line(){
_lineID = "";
}
[[nodiscard]] const std::string &getLineId() const;
void setLineId(const std::string &lineId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment