Skip to content

Commit

Permalink
Merge pull request #1172 from AdaCore/adv-ada_resources-mgmt_access-a…
Browse files Browse the repository at this point in the history
…bstraction_fix

Fix for null access support in example
  • Loading branch information
gusthoff authored Jan 17, 2025
2 parents d47dcbf + 524ad16 commit 1000ae9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4178,13 +4178,13 @@ Let's see an example:
(if Obj /= null then Obj.all else "");

function Copy (Obj : Info) return Info is
(To_Info (Obj.all));
(To_Info (To_String (Obj)));

procedure Copy (To : in out Info;
From : Info) is
begin
Destroy (To);
To := To_Info (From.all);
To := Copy (From);
end Copy;

procedure Append (Obj : in out Info;
Expand Down

0 comments on commit 1000ae9

Please sign in to comment.