Changeset 135 in dev for BasicCompiler64/Compile_Var.cpp
- Timestamp:
- Jun 6, 2007, 12:58:40 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler64/Compile_Var.cpp
r131 r135 472 472 473 473 for(i=0;i<pobj_CompilingClass->iMemberNum;i++){ 474 if(lstrcmp(VarName,pobj_CompilingClass->ppobj_Member[i]->name)==0) break; 474 if( pobj_CompilingClass->ppobj_Member[i]->GetName() == VarName ){ 475 break; 476 } 475 477 } 476 478 if(i==pobj_CompilingClass->iMemberNum) goto NonClassMember; … … 479 481 //Const修飾子のメソッド内でメンバ書き込みアクセスが発生したとき 480 482 //(コンストラクタ、デストラクタ内を除く) 481 CMethod *pMethod = pobj_DBClass->GetNowCompilingMethodInfo();483 const CMethod *pMethod = pobj_DBClass->GetNowCompilingMethodInfo(); 482 484 if( isWriteAccess && 483 pMethod-> isConst&&485 pMethod->IsConst() && 484 486 pobj_CompilingClass->IsCompilingConstructor() == false && 485 487 pobj_CompilingClass->IsCompilingDestructor() == false … … 772 774 i=GetOneParameter(InitBuf,i,temporary); 773 775 774 i3=objClass.GetMemberOffset( objClass.ppobj_Member[i2]-> name, NULL );776 i3=objClass.GetMemberOffset( objClass.ppobj_Member[i2]->GetName().c_str(), NULL ); 775 777 776 778 if(!SetInitGlobalData(offset+i3, … … 908 910 i=GetOneParameter(InitBuf,i,temporary); 909 911 910 i3=objClass.GetMemberOffset( objClass.ppobj_Member[i2]-> name, NULL );912 i3=objClass.GetMemberOffset( objClass.ppobj_Member[i2]->GetName().c_str(), NULL ); 911 913 912 914 if(!InitLocalVar(offset+i3,
Note:
See TracChangeset
for help on using the changeset viewer.