Changeset 447 in dev for trunk/ab5.0/abdev/BasicCompiler_Common/src/Class.cpp
- Timestamp:
- Mar 21, 2008, 2:23:20 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/BasicCompiler_Common/src/Class.cpp
r431 r447 130 130 131 131 //自身の派生クラスかどうかを確認 132 bool CClass::IsSubClass( const CClass *p Class ) const133 { 134 if( !p Class->HasSuperClass() )132 bool CClass::IsSubClass( const CClass *pSubClass ) const 133 { 134 if( !pSubClass->HasSuperClass() ) 135 135 { 136 136 return false; 137 137 } 138 138 139 const CClass *pTempClass = &p Class->GetSuperClass();139 const CClass *pTempClass = &pSubClass->GetSuperClass(); 140 140 while( pTempClass ){ 141 141 if( this == pTempClass ) return true; … … 146 146 147 147 //自身と等しいまたは派生クラスかどうかを確認 148 bool CClass::IsEqualsOrSubClass( const CClass *p Class ) const149 { 150 if( IsEquals( p Class ) ) return true;151 return IsSubClass( p Class );148 bool CClass::IsEqualsOrSubClass( const CClass *pSubClass ) const 149 { 150 if( IsEquals( pSubClass ) ) return true; 151 return IsSubClass( pSubClass ); 152 152 } 153 153
Note:
See TracChangeset
for help on using the changeset viewer.