mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-21 02:50:55 +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
|
Public
|
||||||
constructor Create(AOwner: TComponent); override;
|
constructor Create(AOwner: TComponent); override;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
Procedure CreateForm(AClass : TComponentClass; Var Reference : TComponent);
|
Procedure CreateForm(AClass : TComponentClass; out Reference);
|
||||||
Procedure Initialize; override;
|
Procedure Initialize; override;
|
||||||
Procedure ShowException(E: Exception);override;
|
Procedure ShowException(E: Exception);override;
|
||||||
Procedure DoHandleRequest(ARequest : TRequest; AResponse : TResponse);
|
Procedure DoHandleRequest(ARequest : TRequest; AResponse : TResponse);
|
||||||
@ -365,9 +365,9 @@ begin
|
|||||||
inherited Destroy;
|
inherited Destroy;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCustomWebApplication.CreateForm(AClass: TComponentClass; var Reference: TComponent);
|
procedure TCustomWebApplication.CreateForm(AClass: TComponentClass; out Reference);
|
||||||
begin
|
begin
|
||||||
Reference:=AClass.Create(Self);
|
TComponent(Reference):=AClass.Create(Self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user