Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions siteupdate/cplusplus/classes/HighwaySystem/HighwaySystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ HighwaySystem::HighwaySystem(
if (!file) el.add_error("Could not open "+path+"/"+systemname+".csv");
else { getline(file, line); // ignore header line
while(getline(file, line))
{ // trim DOS newlines & trailing whitespace
{ if (line.empty()) continue;
// trim DOS newlines & trailing whitespace
while ( strchr("\r\t ", line.back()) ) line.pop_back();
if (line.empty()) continue;
Route* r = new Route(line, this, el, region_hash);
// deleted on termination of program
if (r->root.size()) route_list.push_back(r);
Expand All @@ -78,9 +78,9 @@ HighwaySystem::HighwaySystem(
if (!file) el.add_error("Could not open "+path+"/"+systemname+"_con.csv");
else { getline(file, line); // ignore header line
while(getline(file, line))
{ // trim DOS newlines & trailing whitespace
{ if (line.empty()) continue;
// trim DOS newlines & trailing whitespace
while ( strchr("\r\t ", line.back()) ) line.pop_back();
if (line.empty()) continue;
con_route_list.push_back(new ConnectedRoute(line, this, el));
// deleted on termination of program
}
Expand Down
2 changes: 1 addition & 1 deletion siteupdate/cplusplus/localupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ install=1
pull=1
execdir=`pwd`
tmbase=$HOME/travelmapping
tmwebbase=/home/www/tm
tmwebbase=/fast/www/tm
tmpdir=/home/tmp/tm
datestr=`date '+%Y-%m-%d@%H:%M:%S'`
logdir=logs
Expand Down