mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 15:49:26 +02:00
* Added Exchange to TCollection. Bug ID #15517
git-svn-id: trunk@15012 -
This commit is contained in:
parent
2e544bd8de
commit
f29973cc71
@ -505,6 +505,7 @@ type
|
||||
function GetNamePath: string; override;
|
||||
function Insert(Index: Integer): TCollectionItem;
|
||||
function FindItemID(ID: Integer): TCollectionItem;
|
||||
procedure Exchange(Const Index1, index2: integer);
|
||||
procedure Sort(Const Compare : TCollectionSortCompare);
|
||||
property Count: Integer read GetCount;
|
||||
property ItemClass: TCollectionItemClass read FItemClass;
|
||||
|
@ -389,6 +389,12 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCollection.Exchange(Const Index1, index2: integer);
|
||||
|
||||
begin
|
||||
FItems.Exchange(Index1,Index2);
|
||||
end;
|
||||
|
||||
|
||||
{****************************************************************************}
|
||||
{* TOwnedCollection *}
|
||||
|
Loading…
Reference in New Issue
Block a user