summaryrefslogtreecommitdiff
path: root/packages/fcl-stl
diff options
context:
space:
mode:
authorsvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-09-21 12:59:59 +0000
committersvenbarth <svenbarth@3ad0048d-3df7-0310-abae-a5850022a9f2>2018-09-21 12:59:59 +0000
commit3994b912a129f47a8f61fe201e67fd23c1e453bd (patch)
tree96836d1a5b458c38972987fdb8454760cd6abe94 /packages/fcl-stl
parentafc41e7ecec5ad55daf425024784106103d5f8f2 (diff)
downloadfpc-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.pp4
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);