Changeset 71 in dev for BasicCompiler_Common/Class.cpp
- Timestamp:
- Mar 15, 2007, 5:00:34 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BasicCompiler_Common/Class.cpp
r68 r71 389 389 } 390 390 391 //デフォルト コピーコンストラクタ メソッドを取得392 CMethod *CClass::GetCopyConstructorMethod() const393 {394 if( CopyConstructorMemberSubIndex == -1 ) return NULL;395 return methods[CopyConstructorMemberSubIndex];396 }397 398 391 //デストラクタ メソッドを取得 399 392 CMethod *CClass::GetDestructorMethod() const … … 858 851 if(psi->ParmNum==0) fConstructor=1; 859 852 860 // TODO: 消す861 //コピーコンストラクタ862 if(psi->ParmNum==1){863 if(psi->pParmInfo[0].type==DEF_OBJECT&&864 psi->pParmInfo[0].u.pobj_c==pobj_c) fConstructor=2;865 }866 867 853 //強制的にConst修飾子をつける 868 854 isConst = true; … … 888 874 if( fConstructor == 1 ) 889 875 pobj_c->ConstructorMemberSubIndex = (int)pobj_c->methods.size(); 890 else if( fConstructor == 2 )891 pobj_c->CopyConstructorMemberSubIndex = (int)pobj_c->methods.size();892 876 else if( bDestructor ) 893 877 pobj_c->DestructorMemberSubIndex = (int)pobj_c->methods.size(); … … 1032 1016 1033 1017 pobj_c->ConstructorMemberSubIndex=-1; 1034 pobj_c->CopyConstructorMemberSubIndex=-1;1035 1018 pobj_c->DestructorMemberSubIndex=-1; 1036 1019 … … 1188 1171 1189 1172 pobj_c->ConstructorMemberSubIndex=-1; 1190 pobj_c->CopyConstructorMemberSubIndex=-1;1191 1173 pobj_c->DestructorMemberSubIndex=-1; 1192 1174
Note:
See TracChangeset
for help on using the changeset viewer.