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/core/Loader.cc

    r10821 r10916  
    165165                        std::ostringstream message;
    166166                        message << "Possible sources of error:" << endl;
    167                         for (auto & linesource : linesources)
     167                        for (const std::pair<std::string, size_t>& pair : linesources)
    168168                        {
    169                             message << linesource.first << ", Line " << linesource.second << endl;
     169                            message << pair.first << ", Line " << pair.second << endl;
    170170                        }
    171171                        orxout(user_error, context::loader) << message.str() << endl;
     
    261261        {
    262262            bool expectedValue = true;
    263             for (auto & luaTag : luaTags)
    264             {
    265                 if (luaTag.second == expectedValue)
     263            for (auto& mapEntry : luaTags)
     264            {
     265                if (mapEntry.second == expectedValue)
    266266                    expectedValue = !expectedValue;
    267267                else
Note: See TracChangeset for help on using the changeset viewer.