Browse Source

* added cnDeleting, cnExtracting,cnAdding to TCollectionNotification for Delphi compatibility

Michaël Van Canneyt 1 year ago
parent
commit
4f1329fb14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl-generics/src/generics.collections.pas

+ 1 - 1
packages/rtl-generics/src/generics.collections.pas

@@ -123,7 +123,7 @@ type
       AIndex, ACount: SizeInt): Boolean; override; overload;
       AIndex, ACount: SizeInt): Boolean; override; overload;
   end {$ifdef EXTRA_WARNINGS}experimental{$endif}; // will be renamed to TArray (bug #24254)
   end {$ifdef EXTRA_WARNINGS}experimental{$endif}; // will be renamed to TArray (bug #24254)
 
 
-  TCollectionNotification = (cnAdded, cnRemoved, cnExtracted);
+  TCollectionNotification = (cnAdding, cnAdded, cnDeleting, cnRemoved, cnExtracting,  cnExtracted);
   TCollectionNotifyEvent<T> = procedure(ASender: TObject; const AItem: T; AAction: TCollectionNotification)
   TCollectionNotifyEvent<T> = procedure(ASender: TObject; const AItem: T; AAction: TCollectionNotification)
     of object;
     of object;