Codetools: Identifier completion, don't use CompareIdentifiers for ParamList. ParamList contains symbols ";()". Found in issue #40332

This commit is contained in:
Martin 2023-07-17 17:14:26 +02:00
parent ebad154bc6
commit c32f97c6c8

View File

@ -523,8 +523,7 @@ begin
if Result<>0 then exit; if Result<>0 then exit;
//debugln('CompareIdentHistListItem ',Item2.Identifier,'=',Item1.Identifier); //debugln('CompareIdentHistListItem ',Item2.Identifier,'=',Item1.Identifier);
Result:=CompareIdentifiers(PChar(Pointer(Item2.ParamList)), Result:=CompareTextIgnoringSpace(Item2.ParamList,Item1.ParamList,false);
PChar(Pointer(Item1.ParamList)));
end; end;
function CompareIdentItemWithHistListItem(Data1, Data2: Pointer): integer; function CompareIdentItemWithHistListItem(Data1, Data2: Pointer): integer;