From 3c8f58d4db6e3fda39bdcc6fb5a26f64687e0d18 Mon Sep 17 00:00:00 2001 From: nsubiron Date: Fri, 16 Feb 2018 16:59:42 +0100 Subject: [PATCH] Rename function --- .../CarlaUE4/Plugins/Carla/Source/Carla/CityMapGenerator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/CityMapGenerator.cpp b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/CityMapGenerator.cpp index a94818cd4..b18aa766a 100644 --- a/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/CityMapGenerator.cpp +++ b/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/CityMapGenerator.cpp @@ -31,7 +31,7 @@ public: using HalfEdge = MapGen::DoublyConnectedEdgeList::HalfEdge; - bool IsVisited(const HalfEdge &InHalfEdge) + bool Insert(const HalfEdge &InHalfEdge) { return Set.insert(&InHalfEdge).second && Set.insert(&MapGen::DoublyConnectedEdgeList::GetPair(InHalfEdge)).second; @@ -160,7 +160,7 @@ void ACityMapGenerator::GenerateRoads() // For each edge add road segment. for (auto &edge : graph.GetHalfEdges()) { - if (HalfEdgeCounter.IsVisited(edge)) { + if (HalfEdgeCounter.Insert(edge)) { auto source = Graph::GetSource(edge).GetPosition(); auto target = Graph::GetTarget(edge).GetPosition();