Changeset 482 for branches


Ignore:
Timestamp:
03/20/14 14:23:14 (5 years ago)
Author:
jls17
Message:
  • removed some code duplication
Location:
branches/work_304/output
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/work_304/output/WorkflowReferenceTable.cpp

    r481 r482  
    2828: obj(image) 
    2929{ 
    30         const CRefItemList &refs = image.GetReferences(); 
    31         curIt = refs.begin(); 
    32         endIt = refs.end(); 
     30        InitIterators(image.GetReferences()); 
    3331} 
    3432 
     
    3634:obj(container) 
    3735{ 
    38         const CRefItemList &refs = container.GetReferences(); 
     36        InitIterators(container.GetReferences()); 
     37} 
     38 
     39void WorkflowReferenceTable::InitIterators(const CRefItemList &refs) 
     40{ 
    3941        curIt = refs.begin(); 
    4042        endIt = refs.end(); 
  • branches/work_304/output/WorkflowReferenceTable.h

    r481 r482  
    3737                CRefItemList::const_iterator endIt; 
    3838                const CARServerObject &obj; 
     39 
     40                void InitIterators(const CRefItemList &refItemList); 
    3941        }; 
    4042}; 
Note: See TracChangeset for help on using the changeset viewer.