From d3881b11b1bdab7ff712bfad2bbfff97e70e330b Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 29 Dec 2018 00:36:13 +0000 Subject: [PATCH] LazDebuggerLldb: change "open array" params to "const" git-svn-id: trunk@59932 - --- components/lazdebuggers/lazdebuggerlldb/lldbhelper.pas | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/components/lazdebuggers/lazdebuggerlldb/lldbhelper.pas b/components/lazdebuggers/lazdebuggerlldb/lldbhelper.pas index 0eb16b7ab5..935c98dc41 100644 --- a/components/lazdebuggers/lazdebuggerlldb/lldbhelper.pas +++ b/components/lazdebuggers/lazdebuggerlldb/lldbhelper.pas @@ -24,8 +24,8 @@ function LastPos(ASearch, AString: string): Integer; function StrStartsWith(AString, AStart: string; ACheckStartNotEmpty: Boolean = False): Boolean; function StrContains(AString, AFind: string): Boolean; -function StrMatches(AString: string; AFind: array of string): Boolean; -function StrMatches(AString: string; AFind: array of string; out AGapsContent: TStringArray): Boolean; +function StrMatches(AString: string; const AFind: array of string): Boolean; +function StrMatches(AString: string; const AFind: array of string; out AGapsContent: TStringArray): Boolean; function ParseThreadLocation(AnInput: String; out AnId: Integer; out AnIsCurrent: Boolean; out AName: String; out AnAddr: TDBGPtr; @@ -69,14 +69,14 @@ begin Result := pos(AFind, AString) > 0; end; -function StrMatches(AString: string; AFind: array of string): Boolean; +function StrMatches(AString: string; const AFind: array of string): Boolean; var Dummy: TStringArray; begin Result := StrMatches(AString, AFind, Dummy); end; -function StrMatches(AString: string; AFind: array of string; out +function StrMatches(AString: string; const AFind: array of string; out AGapsContent: TStringArray): Boolean; var FindIdx, FindLen, j, j2, ResIdx: Integer;