mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-28 21:00:43 +02:00
fixed fpc 1.0.x compilation
git-svn-id: trunk@6365 -
This commit is contained in:
parent
5d6c298120
commit
9d07455586
@ -1242,9 +1242,7 @@ Begin
|
||||
end;
|
||||
|
||||
// create component interface
|
||||
Temp := TComponentInterface.Create;
|
||||
Temp.FComponent:=NewComponent;
|
||||
|
||||
Temp := TComponentInterface.Create(NewComponent);
|
||||
// set parent
|
||||
if Temp.IsTControl then begin
|
||||
if (ParentComponent is TWinControl)
|
||||
@ -1268,13 +1266,11 @@ Begin
|
||||
if JITList=nil then
|
||||
RaiseException('TCustomFormEditor.CreateComponent '+TypeClass.ClassName);
|
||||
NewJITIndex := JITList.AddNewJITComponent(DefaultJITUnitName,TypeClass);
|
||||
if NewJITIndex >= 0 then begin
|
||||
if NewJITIndex >= 0 then
|
||||
// create component interface
|
||||
Temp := TComponentInterface.Create;
|
||||
Temp.FComponent := JITList[NewJITIndex]
|
||||
end else begin
|
||||
Temp := TComponentInterface.Create(JITList[NewJITIndex])
|
||||
else
|
||||
exit;
|
||||
end;
|
||||
end;
|
||||
{$IFDEF IDE_MEM_CHECK}CheckHeapWrtMemCnt('TCustomFormEditor.CreateComponent D ');{$ENDIF}
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user