OSDN Git Service

2004-05-17 Steve Kargl <kargls@comcast.net>
[pf3gnuchains/gcc-fork.git] / gcc / ada / a-stwifi.adb
index 268ed4a..100fb80 100644 (file)
@@ -6,8 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---                                                                          --
---          Copyright (C) 1992-2001 Free Software Foundation, Inc.          --
+--          Copyright (C) 1992-2002 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- --
@@ -380,7 +379,7 @@ package body Ada.Strings.Wide_Fixed is
          raise Index_Error;
       else
          declare
-            Result_Length : Natural :=
+            Result_Length : constant Natural :=
                               Natural'Max
                                 (Source'Length,
                                  Position - Source'First + New_Item'Length);
@@ -589,7 +588,8 @@ package body Ada.Strings.Wide_Fixed is
 
       else
          declare
-            Result : Wide_String (1 .. High - Low + 1) := Source (Low .. High);
+            Result : constant Wide_String (1 .. High - Low + 1) :=
+                       Source (Low .. High);
 
          begin
             return Result;