update subprojects, refactoring

This commit is contained in:
Patrick Brosi 2023-10-12 13:03:21 +02:00
parent 1c459816de
commit 7a772486d0
5 changed files with 7 additions and 5 deletions

View file

@ -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();

View file

@ -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;
@ -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);