Skip to content

Commit

Permalink
update subprojects, refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Oct 12, 2023
1 parent 1c45981 commit 7a77248
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cppgtfs
2 changes: 2 additions & 0 deletions src/pfaedle/osm/OsmBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1857,6 +1857,8 @@ bool OsmBuilder::keepFullTurn(const trgraph::Node* n, double ang) {

POINT ap, bp;

if (!a || !b) return false;

if (a->pl().getGeom() && b->pl().getGeom()) {
ap = a->pl().backHop();
bp = b->pl().backHop();
Expand Down
4 changes: 2 additions & 2 deletions src/pfaedle/router/Weights.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ExpoTransWeight {
uint32_t _inf;
bool _noLineSimiPen;
mutable const trgraph::Edge* _lastFrom;
mutable uint32_t _lastC;
mutable uint32_t _lastC = 0;

uint32_t operator()(const trgraph::Edge* from, const trgraph::Node* n,
const trgraph::Edge* to) const;
Expand All @@ -68,7 +68,7 @@ class ExpoTransWeight {
uint32_t operator()(const trgraph::Edge* a,
const std::set<trgraph::Edge*>& b) const;
mutable const trgraph::Edge* _lastE;
mutable uint32_t _lastC;
mutable uint32_t _lastC = 0;
};

static uint32_t maxCost(double tTime, const RoutingOpts& rOpts);
Expand Down
2 changes: 1 addition & 1 deletion src/util
2 changes: 1 addition & 1 deletion src/xml
Submodule xml updated 1 files
+6 −3 include/pfxml/pfxml.h

0 comments on commit 7a77248

Please sign in to comment.