@@ -89,8 +89,8 @@ std::tuple<OccLite::nopb::TransitionResponse, ::grpc::Status> doTransition(fair:
8989 " sndKernelSize"
9090 };
9191 for (auto it = arguments.cbegin (); it != arguments.cend (); ++it) {
92- std::string key = it->first ;
93- std::string value = it->second ;
92+ std::string key = it->key ;
93+ std::string value = it->value ;
9494 if (boost::starts_with (key, " chans." )) {
9595 key.erase (0 , 6 );
9696 std::vector<std::string> split;
@@ -138,8 +138,8 @@ std::tuple<OccLite::nopb::TransitionResponse, ::grpc::Status> doTransition(fair:
138138 if (evt == fair::mq::PluginServices::DeviceStateTransition::InitDevice) {
139139 std::unordered_map<std::string, std::unordered_map<std::string, std::string>> channels;
140140 for (auto it = arguments.cbegin (); it != arguments.cend (); ++it) {
141- std::string key = it->first ;
142- std::string value = it->second ;
141+ std::string key = it->key ;
142+ std::string value = it->value ;
143143 if (boost::starts_with (key, " chans." )) {
144144 key.erase (0 , 6 );
145145 std::vector<std::string> split;
@@ -171,8 +171,8 @@ std::tuple<OccLite::nopb::TransitionResponse, ::grpc::Status> doTransition(fair:
171171 // Run number must be pushed immediately before RUN transition
172172 else if (evt == fair::mq::PluginServices::DeviceStateTransition::Run) {
173173 try {
174- for (auto const & [key, value] : arguments) {
175- m_pluginServices->SetProperty (key, value);
174+ for (auto const & entry : arguments) {
175+ m_pluginServices->SetProperty (entry. key , entry. value );
176176 }
177177 }
178178 catch (std::runtime_error &e) {
0 commit comments