Skip to content

Commit 2b51b34

Browse files
committed
Add aliased to a parameter definitions
To match corresponding calls from container packages. for S220-056 Change-Id: I535535a88e1a637a7754acc7bec5363833f7e6b0
1 parent 7c495ef commit 2b51b34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gnatcoll-opt_parse.adb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
------------------------------------------------------------------------------
22
-- G N A T C O L L --
33
-- --
4-
-- Copyright (C) 2009-2019, AdaCore --
4+
-- Copyright (C) 2009-2020, AdaCore --
55
-- --
66
-- This library is free software; you can redistribute it and/or modify it --
77
-- under terms of the GNU General Public License as published by the Free --
@@ -92,7 +92,7 @@ package body GNATCOLL.Opt_Parse is
9292
-- Shortcut for a reference to a XString
9393

9494
function Append_Line
95-
(Self : in out Text_Wrapper) return XString_Ref;
95+
(Self : aliased in out Text_Wrapper) return XString_Ref;
9696
-- Append a new line to Self
9797

9898
procedure Append_Line
@@ -104,7 +104,7 @@ package body GNATCOLL.Opt_Parse is
104104
-- `Col_After`.
105105

106106
function Current_Line
107-
(Self : in out Text_Wrapper) return XString_Ref
107+
(Self : aliased in out Text_Wrapper) return XString_Ref
108108
is
109109
(if Self.Lines.Is_Empty
110110
then Self.Append_Line else Self.Lines.Reference (Self.Lines.Last_Index));
@@ -208,7 +208,7 @@ package body GNATCOLL.Opt_Parse is
208208
-----------------
209209

210210
function Append_Line
211-
(Self : in out Text_Wrapper) return XString_Vectors.Reference_Type
211+
(Self : aliased in out Text_Wrapper) return XString_Vectors.Reference_Type
212212
is
213213
Ret : XString;
214214
begin

0 commit comments

Comments
 (0)