Fix spelling errors in lclproc.pas. Patch by Don Siders. Issue #0039161.

git-svn-id: trunk@65374 -
This commit is contained in:
bart 2021-07-05 15:45:45 +00:00
parent 0711ae584c
commit 912b44ef09

View File

@ -287,7 +287,7 @@ procedure DbgAppendToFileWithoutLn(FileName, S: String);
// case..of utility functions
function ClassCase(const AClass: TClass; const ACase: array of TClass {; const ADescendant: Boolean = True}): Integer; overload;
function ClassCase(const AClass: TClass; const ACase: array of TClass; const ADecendant: Boolean): Integer; overload;
function ClassCase(const AClass: TClass; const ACase: array of TClass; const ADescendant: Boolean): Integer; overload;
// MWE: define (missing) UTF16string similar to UTF8
// strictly spoken, a widestring <> utf16string
@ -2319,17 +2319,17 @@ begin
CloseFile(F);
end;
function ClassCase(const AClass: TClass; const ACase: array of TClass {; const ADecendant: Boolean = True}): Integer;
function ClassCase(const AClass: TClass; const ACase: array of TClass {; const ADescendant: Boolean = True}): Integer;
begin
Result := ClassCase(AClass, ACase, True);
end;
function ClassCase(const AClass: TClass; const ACase: array of TClass; const ADecendant: Boolean): Integer;
function ClassCase(const AClass: TClass; const ACase: array of TClass; const ADescendant: Boolean): Integer;
begin
for Result := Low(ACase) to High(ACase) do
begin
if AClass = ACase[Result] then Exit;
if not ADecendant then Continue;
if not ADescendant then Continue;
if AClass.InheritsFrom(ACase[Result]) then Exit;
end;