Ignore:
Timestamp:
Feb 11, 2011, 10:05:14 PM (14 years ago)
Author:
イグトランス (egtra)
Message:

Hashmapの実装にunorderedを用いるよう変更

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/egtra/ab5.0/abdev/BasicCompiler_Common/src/LexicalAnalyzer_Delegate.cpp

    r750 r803  
    127127    Jenga::Common::SourceTemplate sourceTemplate( ActiveBasic::Common::Environment::GetAbdevSystemDirPath() + "\\templates\\delegate_class.tab" );
    128128
    129     delegates.Iterator_Reset();
    130     while( delegates.Iterator_HasNext() )
    131     {
    132         const Delegate &dg = *delegates.Iterator_GetNext();
     129    foreach (auto pDelegate, delegates)
     130    {
     131        const Delegate &dg = *pDelegate;
    133132
    134133        if( dg.IsExternal() )
     
    263262void LexicalAnalyzer::RefleshDelegatesParameterAndReturnType( Delegates &delegates )
    264263{
    265     delegates.Iterator_Reset();
    266     while( delegates.Iterator_HasNext() )
    267     {
    268         Delegate &dg = *delegates.Iterator_GetNext();
    269         RefleshDelegateParameterAndReturnType( dg );
    270     }
    271 }
     264    foreach (auto *pDelegate, delegates)
     265    {
     266        RefleshDelegateParameterAndReturnType(*pDelegate);
     267    }
     268}
Note: See TracChangeset for help on using the changeset viewer.