mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-09 23:09:17 +02:00
* Changed TCustomWebApplication.CreateForm's reference parameter now the compiler enforces the same type on var-parameters
git-svn-id: trunk@14992 -
This commit is contained in:
parent
97207e8676
commit
fd36dabc09
@ -102,7 +102,7 @@ Type
|
||||
Public
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
Procedure CreateForm(AClass : TComponentClass; Var Reference : TComponent);
|
||||
Procedure CreateForm(AClass : TComponentClass; out Reference);
|
||||
Procedure Initialize; override;
|
||||
Procedure ShowException(E: Exception);override;
|
||||
Procedure DoHandleRequest(ARequest : TRequest; AResponse : TResponse);
|
||||
@ -365,9 +365,9 @@ begin
|
||||
inherited Destroy;
|
||||
end;
|
||||
|
||||
procedure TCustomWebApplication.CreateForm(AClass: TComponentClass; var Reference: TComponent);
|
||||
procedure TCustomWebApplication.CreateForm(AClass: TComponentClass; out Reference);
|
||||
begin
|
||||
Reference:=AClass.Create(Self);
|
||||
TComponent(Reference):=AClass.Create(Self);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user