Changeset 382 in dev for trunk/abdev/BasicCompiler_Common/src/Class.cpp
- Timestamp:
- Jan 2, 2008, 12:50:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/Class.cpp
r380 r382 340 340 BOOST_FOREACH( CMethod *pMethod, GetDynamicMethods() ) 341 341 { 342 CMethod *pMethodForOverride = pDestInterface->GetDynamicMethods().FindForOverride( &pMethod->GetUserProc() );342 CMethod *pMethodForOverride = pDestInterface->GetDynamicMethods().FindForOverride( pDestInterface->GetActualTypeParameters(), &pMethod->GetUserProc() ); 343 343 if( pMethodForOverride ) 344 344 { … … 524 524 if( pMethod->GetInheritsClassPtr() ) continue; 525 525 526 if( pMethod->GetUserProc().IsEqualForOverride( p UserProc ) )526 if( pMethod->GetUserProc().IsEqualForOverride( pobj_c->GetSuperClassActualTypeParameters(), pUserProc ) ) 527 527 { 528 528 //関数名、パラメータ、戻り値が合致したとき … … 536 536 537 537 // メソッドのオーバーライド 538 CMethod *pMethodForOverride = pobj_c->GetDynamicMethods().FindForOverride( p UserProc );538 CMethod *pMethodForOverride = pobj_c->GetDynamicMethods().FindForOverride( pobj_c->GetSuperClassActualTypeParameters(), pUserProc ); 539 539 if( pMethodForOverride ) 540 540 { … … 545 545 else 546 546 { 547 548 if( pUserProc->GetName() == "GenericProc" ) 549 { 550 int test=0; 551 } 552 547 553 // インターフェイス メソッドのオーバーライド 548 554 BOOST_FOREACH( ::Interface *pInterface, pobj_c->GetInterfaces() ) … … 562 568 } 563 569 564 CMethod *pMethodForOverride = pInterface->GetDynamicMethods().FindForOverride( p UserProc );570 CMethod *pMethodForOverride = pInterface->GetDynamicMethods().FindForOverride( pInterface->GetActualTypeParameters(), pUserProc ); 565 571 if( pMethodForOverride ) 566 572 {
Note:
See TracChangeset
for help on using the changeset viewer.