diff options
author | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-29 14:21:27 +0000 |
---|---|---|
committer | charlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-29 14:21:27 +0000 |
commit | 704880481a22c59657091bfb5b998efd989c9a5f (patch) | |
tree | 08443dfec4931ee42498fe054ec70bfa2e0a1c94 /gcc/ada/a-cborse.adb | |
parent | 2a2129b6f630c9b313f8d3e5055f13eedf0f3077 (diff) | |
download | gcc-704880481a22c59657091bfb5b998efd989c9a5f.tar.gz |
2011-08-29 Matthew Heaney <heaney@adacore.com>
* a-cbhama.ads, a-cbhase.ads (Move): Clear Source following assignment
to Target.
2011-08-29 Matthew Heaney <heaney@adacore.com>
* a-cborma.ads, a-cborse.ads (Cursor): Default-initialize all
components of record type.
* a-cborma.adb, a-cborse.adb (Move): Clear Source following assignmentw
to Target.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178243 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-cborse.adb')
-rw-r--r-- | gcc/ada/a-cborse.adb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/a-cborse.adb b/gcc/ada/a-cborse.adb index 12d253c648f..4a4bc71d416 100644 --- a/gcc/ada/a-cborse.adb +++ b/gcc/ada/a-cborse.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 2004-2010, Free Software Foundation, Inc. -- +-- Copyright (C) 2004-2011, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -1244,7 +1244,8 @@ package body Ada.Containers.Bounded_Ordered_Sets is "attempt to tamper with cursors (container is busy)"; end if; - Assign (Target => Target, Source => Source); + Target.Assign (Source); + Source.Clear; end Move; ---------- |