Changeset 10821 for code/branches/cpp11_v2/src/libraries/core/Language.cc
- Timestamp:
 - Nov 21, 2015, 7:05:53 PM (10 years ago)
 - File:
 - 
          
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/branches/cpp11_v2/src/libraries/core/Language.cc
r10768 r10821 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 (auto & elem : this->languageEntries_) 110 delete (elem.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 & elem : this->languageEntries_) 322 { 323 file << elem.second->getLabel() << '=' << elem.second->getDefault() << endl; 324 324 } 325 325  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






