You've already forked lazarus-ccr
Wrapped parameter generation fix
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@505 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -695,11 +695,17 @@ Var
|
||||
if elt.InheritsFrom(TPasUnresolvedTypeRef) then begin
|
||||
Indent(); WriteLn('if ( PTypeInfo(TypeInfo(%s))^.Kind = tkClass ) then',[elt.Name]);
|
||||
IncIndent();
|
||||
Indent(); WriteLn('TObject(%s.%s) := nil;',[sOUTPUT_PARAM,origineResProp.Name]);
|
||||
Indent(); WriteLn('if ( %s <> nil ) then',[sOUTPUT_PARAM]);
|
||||
IncIndent();
|
||||
Indent(); WriteLn('TObject(%s.%s) := nil;',[sOUTPUT_PARAM,origineResProp.Name]);
|
||||
DecIndent();
|
||||
DecIndent();
|
||||
end else begin
|
||||
if SymbolTable.IsOfType(TPasType(elt),TPasClassType) then begin
|
||||
Indent(); WriteLn('%s.%s := nil;',[sOUTPUT_PARAM,origineResProp.Name]);
|
||||
Indent(); WriteLn('if ( %s <> nil ) then',[sOUTPUT_PARAM]);
|
||||
IncIndent();
|
||||
Indent(); WriteLn('%s.%s := nil;',[sOUTPUT_PARAM,origineResProp.Name]);
|
||||
DecIndent();
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
Reference in New Issue
Block a user