Changeset 8abee136 for src/Common


Ignore:
Timestamp:
May 22, 2019, 5:01:53 PM (6 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
ef5ef56
Parents:
f4c2f1a
Message:

early bug fixes from running conversion old-new-old, just before resolver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/Common/utility.h

    rf4c2f1a r8abee136  
    7474
    7575template< typename Container >
    76 void deleteAll( Container &container ) {
    77         for ( typename Container::iterator i = container.begin(); i != container.end(); ++i ) {
    78                 delete *i;
     76void deleteAll( const Container &container ) {
     77        for ( const auto &i : container ) {
     78                delete i;
    7979        } // for
    8080}
Note: See TracChangeset for help on using the changeset viewer.