From d971ccd4bafa650355ba4a3679c8eba92a1f4b12 Mon Sep 17 00:00:00 2001 From: dev Date: Mon, 15 Jul 2024 07:56:27 -0400 Subject: [PATCH] Updates --- src/v2i-hub/SpatPlugin/src/NTCIP1202.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/v2i-hub/SpatPlugin/src/NTCIP1202.cpp b/src/v2i-hub/SpatPlugin/src/NTCIP1202.cpp index 236220479..bbfb5b19f 100644 --- a/src/v2i-hub/SpatPlugin/src/NTCIP1202.cpp +++ b/src/v2i-hub/SpatPlugin/src/NTCIP1202.cpp @@ -38,13 +38,13 @@ void Ntcip1202::setSignalGroupMappingList(string json) ptree root; read_json(ss, root); - for(auto & signalGroup : root.get_child("SignalGroups")) + for( const auto &[key, value]: root.get_child("SignalGroups")) { - int signalGroupId = signalGroup.second.get("SignalGroupId"); - int phaseNumber = signalGroup.second.get("Phase", 0); - string typeName = signalGroup.second.get("Type"); + int signalGroupId = value.get("SignalGroupId"); + int phaseNumber = value.get("Phase", 0); + string typeName = value.get("Type"); - PLOG(logDEBUG) <<"signalGroupId: "<