Changeset 828 in dev for trunk/ab5.0/abdev/ab_common/src/Lexical/Class.cpp
- Timestamp:
- Mar 19, 2012, 1:59:48 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to
/branches/egtra merged eligible
-
Property svn:mergeinfo
set to
-
trunk/ab5.0/abdev
-
Property svn:ignore
set to
*.opensdf
*.sdf
*.suo
*.user
int
ipch
out
-
Property svn:ignore
set to
-
trunk/ab5.0/abdev/ab_common/src/Lexical/Class.cpp
r750 r828 1 1 #include "stdafx.h" 2 #include <jenga/include/jenga.h> 3 #include <abdev/ab_common/include/ab_common.h> 2 4 #include <algorithm> 3 5 #include <boost/checked_delete.hpp> … … 777 779 778 780 std::vector<const CClass *> classes; 779 const CClass *pClass = GetHashArrayElement( symbol.GetName().c_str() );780 while( pClass )781 {782 if( pClass->IsEqualSymbol( symbol.GetNamespaceScopes(), symbol.GetName() ) ){781 foreach (auto pClass, GetHashArrayElement(symbol.GetName())) 782 { 783 if ( pClass->IsEqualSymbol(symbol.GetNamespaceScopes(), symbol.GetName())) 784 { 783 785 //名前空間とクラス名が一致した 784 786 classes.push_back( pClass ); 785 787 } 786 pClass = pClass->GetChainNext();787 788 } 788 789 if( classes.size() > 0 ) 789 790 { 790 791 // 複数の名前空間の中に同一のクラス名が存在する場合があるので、アクセス可能で尚且つ階層が一番深いものをチョイスする 791 pClass = classes.front();792 auto pClass = classes.front(); 792 793 793 794 foreach( const CClass *pTempClass, classes )
Note:
See TracChangeset
for help on using the changeset viewer.