- Timestamp:
- Nov 21, 2015, 7:05:53 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/libraries/core/module/PluginManager.cc
r10768 r10821 59 59 ModifyConsoleCommand("PluginManager", __CC_PluginManager_unload_name).setObject(nullptr); 60 60 61 for ( std::map<std::string, PluginReference*>::iterator it = this->references_.begin(); it != this->references_.end(); ++it)62 delete it->second;63 for ( std::map<std::string, Plugin*>::iterator it = this->plugins_.begin(); it != this->plugins_.end(); ++it)64 delete it->second;61 for (auto & elem : this->references_) 62 delete elem.second; 63 for (auto & elem : this->plugins_) 64 delete elem.second; 65 65 } 66 66 … … 68 68 { 69 69 const std::vector<std::string>& pluginPaths = ApplicationPaths::getInstance().getPluginPaths(); 70 for ( std::vector<std::string>::const_iterator it = pluginPaths.begin(); it != pluginPaths.end(); ++it)70 for (auto libraryName : pluginPaths) 71 71 { 72 72 std::string name; 73 std::string libraryName = (*it);73 74 74 std::string filename = libraryName + + specialConfig::pluginExtension; 75 75 std::ifstream infile(filename.c_str());
Note: See TracChangeset
for help on using the changeset viewer.