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/module/PluginManager.cc

    r10821 r10916  
    5959        ModifyConsoleCommand("PluginManager", __CC_PluginManager_unload_name).setObject(nullptr);
    6060
    61         for (auto & elem : this->references_)
    62             delete elem.second;
    63         for (auto & elem : this->plugins_)
    64             delete elem.second;
     61        for (auto& mapEntry : this->references_)
     62            delete mapEntry.second;
     63        for (auto& mapEntry : this->plugins_)
     64            delete mapEntry.second;
    6565    }
    6666
     
    6868    {
    6969        const std::vector<std::string>& pluginPaths = ApplicationPaths::getInstance().getPluginPaths();
    70         for (auto libraryName : pluginPaths)
     70        for (const std::string& libraryName : pluginPaths)
    7171        {
    7272            std::string name;
    73            
    7473            std::string filename = libraryName +  + specialConfig::pluginExtension;
    7574            std::ifstream infile(filename.c_str());
Note: See TracChangeset for help on using the changeset viewer.