summaryrefslogtreecommitdiff
path: root/libstdc++
diff options
context:
space:
mode:
authorloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-15 07:37:36 +0000
committerloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>1999-12-15 07:37:36 +0000
commita55073df9f73d728cf69d74ca8fcf3fe99c8589d (patch)
treedeb0a026b4ee27784c6c0790db5f9f42d08b2362 /libstdc++
parent73b46147d75bfe928df8b715a5a3ecd76b3690b4 (diff)
downloadgcc-a55073df9f73d728cf69d74ca8fcf3fe99c8589d.tar.gz
* std/bastring.h (basic_string::basic_string): Rename parameters
to avoid shadow warnings. * std/bastring.cc (alloc): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30938 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++')
-rw-r--r--libstdc++/ChangeLog6
-rw-r--r--libstdc++/std/bastring.cc10
-rw-r--r--libstdc++/std/bastring.h12
3 files changed, 17 insertions, 11 deletions
diff --git a/libstdc++/ChangeLog b/libstdc++/ChangeLog
index 83218653e4f..d51fb29428f 100644
--- a/libstdc++/ChangeLog
+++ b/libstdc++/ChangeLog
@@ -1,3 +1,9 @@
+1999-12-14 Martin v. Löwis <loewis@informatik.hu-berlin.de>
+
+ * std/bastring.h (basic_string::basic_string): Rename parameters
+ to avoid shadow warnings.
+ * std/bastring.cc (alloc): Likewise.
+
1999-12-13 Jakub Jelinek <jakub@redhat.com>
* std/bastring.h (class basic_string::Rep): Use proper defines
diff --git a/libstdc++/std/bastring.cc b/libstdc++/std/bastring.cc
index 3093b9e129d..f86f6d30157 100644
--- a/libstdc++/std/bastring.cc
+++ b/libstdc++/std/bastring.cc
@@ -1,5 +1,5 @@
// Member templates for the -*- C++ -*- string classes.
-// Copyright (C) 1994 Free Software Foundation
+// Copyright (C) 1994, 1999 Free Software Foundation
// This file is part of the GNU ANSI C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -94,14 +94,14 @@ check_realloc (basic_string::size_type s) const
template <class charT, class traits, class Allocator>
void basic_string <charT, traits, Allocator>::
-alloc (basic_string::size_type size, bool save)
+alloc (basic_string::size_type __size, bool __save)
{
- if (! check_realloc (size))
+ if (! check_realloc (__size))
return;
- Rep *p = Rep::create (size);
+ Rep *p = Rep::create (__size);
- if (save)
+ if (__save)
{
p->copy (0, data (), length ());
p->len = length ();
diff --git a/libstdc++/std/bastring.h b/libstdc++/std/bastring.h
index 7f0b1bf7e23..bfa80bfc2e1 100644
--- a/libstdc++/std/bastring.h
+++ b/libstdc++/std/bastring.h
@@ -1,5 +1,5 @@
// Main templates for the -*- C++ -*- string classes.
-// Copyright (C) 1994, 1995 Free Software Foundation
+// Copyright (C) 1994, 1995, 1999 Free Software Foundation
// This file is part of the GNU ANSI C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -144,8 +144,8 @@ public:
typedef const charT* const_pointer;
typedef pointer iterator;
typedef const_pointer const_iterator;
- typedef ::reverse_iterator<iterator> reverse_iterator;
- typedef ::reverse_iterator<const_iterator> const_reverse_iterator;
+ typedef std::reverse_iterator<iterator> reverse_iterator;
+ typedef std::reverse_iterator<const_iterator> const_reverse_iterator;
static const size_type npos = static_cast<size_type>(-1);
private:
@@ -185,11 +185,11 @@ public:
: dat (nilRep.grab ()) { assign (n, c); }
#ifdef __STL_MEMBER_TEMPLATES
template<class InputIterator>
- basic_string(InputIterator begin, InputIterator end)
+ basic_string(InputIterator __begin, InputIterator __end)
#else
- basic_string(const_iterator begin, const_iterator end)
+ basic_string(const_iterator __begin, const_iterator __end)
#endif
- : dat (nilRep.grab ()) { assign (begin, end); }
+ : dat (nilRep.grab ()) { assign (__begin, __end); }
~basic_string ()
{ rep ()->release (); }