- Timestamp:
- Jul 9, 2012, 2:35:01 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Generic/GenericList.inc
r370 r383 292 292 Result := Start; 293 293 while (Result < FCount) and 294 not CompareMem(@FItems[Result], @Item, SizeOf(TGListItem)) do295 //not (CompareByte(FItems[Result], Item, SizeOf(TGListItem)) = 0) do294 // not CompareMem(@FItems[Result], @Item, SizeOf(TGListItem)) do 295 not (CompareByte(FItems[Result], Item, SizeOf(TGListItem)) = 0) do 296 296 Result := Result + 1; 297 297 if Result = FCount then Result := -1; … … 454 454 Result := IndexOf(Item); 455 455 if Result <> -1 then 456 Delete(Result); 456 Delete(Result) 457 else raise Exception.CreateFmt(SItemNotFound, [0]); 457 458 end; 458 459
Note:
See TracChangeset
for help on using the changeset viewer.