Ignore:
Timestamp:
Feb 19, 2019, 1:19:47 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
no_list
Children:
2f42718
Parents:
99614c2
Message:

more lists converted to vectors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r99614c2 r43e0949  
    839839                // xxx - fix this so that the list isn't copied, iterator should be used to change current
    840840                // element
    841                 std::list<Designation *> newDesignations;
    842                 for ( auto p : group_iterate(listInit->get_designations(), listInit->get_initializers()) ) {
     841                std::vector<Designation *> newDesignations;
     842                for ( auto p : group_iterate(listInit->designations, listInit->initializers) ) {
    843843                        // iterate designations and initializers in pairs, moving the cursor to the current
    844844                        // designated object and resolving the initializer against that object.
     
    849849                }
    850850                // set the set of 'resolved' designations and leave the brace-enclosed initializer-list
    851                 listInit->get_designations() = newDesignations; // xxx - memory management
     851                listInit->designations = newDesignations; // xxx - memory management
    852852                currentObject.exitListInit();
    853853
Note: See TracChangeset for help on using the changeset viewer.