diff options
author | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2018-09-21 12:59:59 +0000 |
---|---|---|
committer | svenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2> | 2018-09-21 12:59:59 +0000 |
commit | 3994b912a129f47a8f61fe201e67fd23c1e453bd (patch) | |
tree | 96836d1a5b458c38972987fdb8454760cd6abe94 /packages/fcl-stl | |
parent | afc41e7ecec5ad55daf425024784106103d5f8f2 (diff) | |
download | fpc-3994b912a129f47a8f61fe201e67fd23c1e453bd.tar.gz |
* apply patch by Andrey Zubarev to avoid a hint regarding the position parameter not being initialized
git-svn-id: https://svn.freepascal.org/svn/fpc/trunk@39785 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fcl-stl')
-rw-r--r-- | packages/fcl-stl/src/gset.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/fcl-stl/src/gset.pp b/packages/fcl-stl/src/gset.pp index a4f49acdb8..34124013b8 100644 --- a/packages/fcl-stl/src/gset.pp +++ b/packages/fcl-stl/src/gset.pp @@ -53,7 +53,7 @@ type function RotateLeft(nod:PNode):PNode;inline; procedure FlipColors(nod:PNode);inline; function IsRed(nod:PNode):boolean;inline; - function Insert(value:T; nod:PNode; var position:PNode):PNode; + function Insert(value:T; nod:PNode; out position:PNode):PNode; function FixUp(nod:PNode):PNode;inline; function MoveRedLeft(nod:PNode):PNode;inline; function MoveRedRight(nod:PNode):PNode;inline; @@ -413,7 +413,7 @@ begin InsertAndGetIterator := ret; end; -function TSet.Insert(value:T; nod:PNode; var position:PNode):PNode; +function TSet.Insert(value:T; nod:PNode; out position:PNode):PNode; begin if(nod=nil) then begin nod:=CreateNode(value); |