IDE: added "const" for some "array of" params

git-svn-id: trunk@59928 -
This commit is contained in:
martin 2018-12-28 17:51:51 +00:00
parent d0de825bcf
commit 78fdca77d0
4 changed files with 5 additions and 5 deletions

View File

@ -247,7 +247,7 @@ begin
end;
end;
procedure SetEnabledControls(AEnabled: Boolean; AControls: array of TControl);
procedure SetEnabledControls(AEnabled: Boolean; const AControls: array of TControl);
var
i: Integer;
begin

View File

@ -436,7 +436,7 @@ procedure Test_MergeTETSrcChanges;
var
Changes: TETSingleSrcChanges;
procedure Check(Title: string; aChanges: array of TETSrcChange);
procedure Check(Title: string; const aChanges: array of TETSrcChange);
procedure E(Msg: string);
var

View File

@ -404,7 +404,7 @@ type
fBuilder: TLazarusBuilder;
fOIActivateLastRow: Boolean;
function DoBuildLazarusSub(Flags: TBuildLazarusFlags): TModalResult;
procedure ProjectOptionsHelper(AFilter: array of TAbstractIDEOptionsClass);
procedure ProjectOptionsHelper(const AFilter: array of TAbstractIDEOptionsClass);
// Global IDE event handlers
procedure ProcessIDECommand(Sender: TObject; Command: word; var Handled: boolean);
procedure ExecuteIDEShortCutHandler(Sender: TObject; var Key: word;
@ -4141,7 +4141,7 @@ begin
OpenMainUnit(-1,-1,[]);
end;
procedure TMainIDE.ProjectOptionsHelper(AFilter: array of TAbstractIDEOptionsClass);
procedure TMainIDE.ProjectOptionsHelper(const AFilter: array of TAbstractIDEOptionsClass);
var
Capt: String;
begin

View File

@ -659,7 +659,7 @@ begin
end;
procedure TSearchProgressForm.SearchFormCREATE(Sender: TObject);
Function MaxWidth(Labs : array of TLabel) : integer;
Function MaxWidth(const Labs : array of TLabel) : integer;
var i,w : integer;
begin
Result:=0;