Changeset 43e0949 for src/ResolvExpr/Resolver.cc
- Timestamp:
- Feb 19, 2019, 1:19:47 PM (5 years ago)
- Branches:
- no_list
- Children:
- 2f42718
- Parents:
- 99614c2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r99614c2 r43e0949 839 839 // xxx - fix this so that the list isn't copied, iterator should be used to change current 840 840 // 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) ) { 843 843 // iterate designations and initializers in pairs, moving the cursor to the current 844 844 // designated object and resolving the initializer against that object. … … 849 849 } 850 850 // set the set of 'resolved' designations and leave the brace-enclosed initializer-list 851 listInit-> get_designations()= newDesignations; // xxx - memory management851 listInit->designations = newDesignations; // xxx - memory management 852 852 currentObject.exitListInit(); 853 853
Note: See TracChangeset
for help on using the changeset viewer.