* Make argument aPositions const in TFileSearchMatch.create

This commit is contained in:
Michaël Van Canneyt 2024-09-27 09:58:20 +02:00
parent d1374fe7cb
commit 60d8403bcd

View File

@ -28,7 +28,7 @@ Type
FFileName: string;
FMatchPositions : TMatchPositionArray;
Public
Constructor create(const aFileName : string; aEntry : TFileEntry; aPositions : TMatchPositionArray);
Constructor create(const aFileName : string; aEntry : TFileEntry; const aPositions : TMatchPositionArray);
Property FileName : string Read FFileName;
Property Entry : TFileEntry Read FEntry;
Property MatchPositions : TMatchPositionArray Read FMatchPositions;
@ -125,7 +125,7 @@ uses Controls, StrUtils, IDEMsgIntf, IDEExternToolIntf, LazConfigStorage;
{ TFileSearchMatch }
constructor TFileSearchMatch.create(const aFileName: string;
aEntry: TFileEntry; aPositions: TMatchPositionArray);
aEntry: TFileEntry; const aPositions: TMatchPositionArray);
begin
FFileName:=aFileName;
FEntry:=aEntry;