Changeset 20022 for trunk/FACT++
- Timestamp:
- 12/28/20 19:31:37 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/gudectrl.cc
r19929 r20022 68 68 const auto &sensor_values = tree.get_child("sensor_values"); 69 69 70 for (const std::pair<std::string, pt::ptree>&obj : sensor_values)70 for (const auto &obj : sensor_values) 71 71 { 72 72 switch (obj.second.get_child("type").get_value<uint32_t>()) … … 78 78 79 79 int isensor = 0; 80 for (const std::pair<std::string, pt::ptree>&sensor : values)80 for (const auto &sensor : values) 81 81 { 82 82 if (isensor==12) … … 84 84 85 85 int ivalue = 0; 86 for (const std::pair<std::string, pt::ptree>&value : sensor.second)86 for (const auto &value : sensor.second) 87 87 { 88 88 if (ivalue==21) … … 111 111 112 112 int isensor = 0; 113 for (const std::pair<std::string, pt::ptree>&obj : outputs)113 for (const auto &obj : outputs) 114 114 { 115 115 if (isensor==12) … … 128 128 const auto &sensor_descr = tree.get_child("sensor_descr"); 129 129 130 for (const std::pair<std::string, pt::ptree>&obj : sensor_descr)130 for (const auto &obj : sensor_descr) 131 131 { 132 132 switch (obj.second.get_child("type").get_value<uint32_t>()) … … 137 137 138 138 int ifield = 0; 139 for (const std::pair<std::string, pt::ptree>&field : fields)139 for (const auto &field : fields) 140 140 { 141 141 if (ifield==21)
Note:
See TracChangeset
for help on using the changeset viewer.