Changeset 20022 for trunk/FACT++


Ignore:
Timestamp:
12/28/20 19:31:37 (4 years ago)
Author:
tbretz
Message:
Fixed some compiler warnings by letting the compiler decide the exact type.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/gudectrl.cc

    r19929 r20022  
    6868            const auto &sensor_values = tree.get_child("sensor_values");
    6969
    70             for (const std::pair<std::string, pt::ptree> &obj : sensor_values)
     70            for (const auto &obj : sensor_values)
    7171            {
    7272                switch (obj.second.get_child("type").get_value<uint32_t>())
     
    7878
    7979                        int isensor = 0;
    80                         for (const std::pair<std::string, pt::ptree> &sensor : values)
     80                        for (const auto &sensor : values)
    8181                        {
    8282                            if (isensor==12)
     
    8484
    8585                            int ivalue = 0;
    86                             for (const std::pair<std::string, pt::ptree> &value : sensor.second)
     86                            for (const auto &value : sensor.second)
    8787                            {
    8888                                if (ivalue==21)
     
    111111
    112112            int isensor = 0;
    113             for (const std::pair<std::string, pt::ptree> &obj : outputs)
     113            for (const auto &obj : outputs)
    114114            {
    115115                if (isensor==12)
     
    128128            const auto &sensor_descr = tree.get_child("sensor_descr");
    129129
    130             for (const std::pair<std::string, pt::ptree> &obj : sensor_descr)
     130            for (const auto &obj : sensor_descr)
    131131            {
    132132                switch (obj.second.get_child("type").get_value<uint32_t>())
     
    137137
    138138                        int ifield = 0;
    139                         for (const std::pair<std::string, pt::ptree> &field : fields)
     139                        for (const auto &field : fields)
    140140                        {
    141141                            if (ifield==21)
Note: See TracChangeset for help on using the changeset viewer.