Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 2, 2015, 11:22:03 PM (9 years ago)
Author:
landauf
Message:

use actual types instead of 'auto'. only exception is for complicated template types, e.g. when iterating over a map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/util/output/OutputManager.cc

    r10829 r10916  
    131131        vectorize(message, '\n', &lines);
    132132
    133         for (auto & elem : this->listeners_)
    134             elem->unfilteredOutput(level, context, lines);
     133        for (OutputListener* listener : this->listeners_)
     134            listener->unfilteredOutput(level, context, lines);
    135135    }
    136136
     
    178178    {
    179179        int mask = 0;
    180         for (auto & elem : this->listeners_)
    181             mask |= elem->getLevelMask();
     180        for (OutputListener* listener : this->listeners_)
     181            mask |= listener->getLevelMask();
    182182        this->combinedLevelMask_ = static_cast<OutputLevel>(mask);
    183183    }
     
    189189    {
    190190        int mask = 0;
    191         for (auto & elem : this->listeners_)
    192             mask |= elem->getAdditionalContextsLevelMask();
     191        for (OutputListener* listener : this->listeners_)
     192            mask |= listener->getAdditionalContextsLevelMask();
    193193        this->combinedAdditionalContextsLevelMask_ = static_cast<OutputLevel>(mask);
    194194    }
     
    200200    {
    201201        this->combinedAdditionalContextsMask_ = 0;
    202         for (auto & elem : this->listeners_)
    203             this->combinedAdditionalContextsMask_ |= elem->getAdditionalContextsMask();
     202        for (OutputListener* listener : this->listeners_)
     203            this->combinedAdditionalContextsMask_ |= listener->getAdditionalContextsMask();
    204204    }
    205205
Note: See TracChangeset for help on using the changeset viewer.