Changeset 11054 for code/branches/cpp11_v3/src/libraries/core/Language.cc
- Timestamp:
- Jan 10, 2016, 1:54:11 PM (9 years ago)
- Location:
- code/branches/cpp11_v3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v3
- Property svn:mergeinfo changed
-
code/branches/cpp11_v3/src/libraries/core/Language.cc
r10624 r11054 88 88 // ############################### 89 89 90 Language* Language::singletonPtr_s = 0;90 Language* Language::singletonPtr_s = nullptr; 91 91 92 92 /** … … 107 107 Language::~Language() 108 108 { 109 for ( std::map<std::string, LanguageEntry*>::iterator it = this->languageEntries_.begin(); it != this->languageEntries_.end(); ++it)110 delete ( it->second);109 for (const auto& mapEntry : this->languageEntries_) 110 delete (mapEntry.second); 111 111 } 112 112 … … 319 319 320 320 // Iterate through the list an write the lines into the file 321 for ( std::map<std::string, LanguageEntry*>::const_iterator it = this->languageEntries_.begin(); it != this->languageEntries_.end(); ++it)322 { 323 file << it->second->getLabel() << '=' << it->second->getDefault() << endl;321 for (const auto& mapEntry : this->languageEntries_) 322 { 323 file << mapEntry.second->getLabel() << '=' << mapEntry.second->getDefault() << endl; 324 324 } 325 325
Note: See TracChangeset
for help on using the changeset viewer.