Ignore:
Timestamp:
Jun 6, 2007, 12:58:40 AM (17 years ago)
Author:
dai_9181
Message:

Method/Memberのリファクタリング

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BasicCompiler_Common/VariableOpe.cpp

    r131 r135  
    559559
    560560    for(i=0;i<objClass.iMemberNum;i++){
    561         if(lstrcmp(objClass.ppobj_Member[i]->name,VarName)==0) break;
     561        if( objClass.ppobj_Member[i]->GetName() == VarName ){
     562            break;
     563        }
    562564    }
    563565    if(i==objClass.iMemberNum){
     
    692694
    693695            for(i=0;i<pobj_CompilingClass->iMemberNum;i++){
    694                 if(lstrcmp(VarName,pobj_CompilingClass->ppobj_Member[i]->name)==0) break;
     696                if( pobj_CompilingClass->ppobj_Member[i]->GetName() == VarName ){
     697                    break;
     698                }
    695699            }
    696700            if(i==pobj_CompilingClass->iMemberNum) goto NonClassMember;
     
    11361140    if( type.IsObject() ){
    11371141        //デストラクタの利用フラグをオンにする
    1138         CMethod *method = type.GetClass().GetDestructorMethod();
     1142        const CMethod *method = type.GetClass().GetDestructorMethod();
    11391143        if( method ){
    11401144            method->pUserProc->Using();
Note: See TracChangeset for help on using the changeset viewer.