mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 17:52:59 +02:00
added cleanup for TFindDeclarationParams
git-svn-id: trunk@8797 -
This commit is contained in:
parent
2106fdeddb
commit
d1d5e5a349
@ -424,6 +424,8 @@ type
|
|||||||
FoundProc: PFoundProc;
|
FoundProc: PFoundProc;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
{ TFindDeclarationParams }
|
||||||
|
|
||||||
TFindDeclarationParams = class(TObject)
|
TFindDeclarationParams = class(TObject)
|
||||||
public
|
public
|
||||||
// input parameters:
|
// input parameters:
|
||||||
@ -443,6 +445,7 @@ type
|
|||||||
NewTopLine: integer;
|
NewTopLine: integer;
|
||||||
NewFlags: TFoundDeclarationFlags;
|
NewFlags: TFoundDeclarationFlags;
|
||||||
constructor Create;
|
constructor Create;
|
||||||
|
destructor Destroy; override;
|
||||||
procedure Clear;
|
procedure Clear;
|
||||||
procedure Save(var Input: TFindDeclarationInput);
|
procedure Save(var Input: TFindDeclarationInput);
|
||||||
procedure Load(var Input: TFindDeclarationInput);
|
procedure Load(var Input: TFindDeclarationInput);
|
||||||
@ -7699,9 +7702,16 @@ begin
|
|||||||
Clear;
|
Clear;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
destructor TFindDeclarationParams.Destroy;
|
||||||
|
begin
|
||||||
|
Clear;
|
||||||
|
inherited Destroy;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TFindDeclarationParams.Clear;
|
procedure TFindDeclarationParams.Clear;
|
||||||
begin
|
begin
|
||||||
ClearInput;
|
ClearInput;
|
||||||
|
ClearFoundProc;
|
||||||
ClearResult(false);
|
ClearResult(false);
|
||||||
OnTopLvlIdentifierFound:=nil;
|
OnTopLvlIdentifierFound:=nil;
|
||||||
end;
|
end;
|
||||||
@ -7787,7 +7797,6 @@ begin
|
|||||||
ContextNode:=nil;
|
ContextNode:=nil;
|
||||||
OnIdentifierFound:=nil;
|
OnIdentifierFound:=nil;
|
||||||
IdentifierTool:=nil;
|
IdentifierTool:=nil;
|
||||||
ClearFoundProc;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TFindDeclarationParams.ClearFoundProc;
|
procedure TFindDeclarationParams.ClearFoundProc;
|
||||||
|
Loading…
Reference in New Issue
Block a user