]> gcc.gnu.org Git - gcc.git/commitdiff
bastring.cc (basic_string::Rep::operator delete): Don't claim to return from dealloca...
authorBrendan Kehoe <brendan@lisa.cygnus.com>
Mon, 5 Jan 1998 18:35:07 +0000 (18:35 +0000)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Mon, 5 Jan 1998 18:35:07 +0000 (13:35 -0500)
* std/bastring.cc (basic_string::Rep::operator delete): Don't claim
to return from deallocate, since this is a void method.

From-SVN: r17297

libstdc++/ChangeLog
libstdc++/std/bastring.cc

index b53b779efeaa4b844e65513a1bda936c46bb2e5a..ffe617ae45c038000faa1944ff824329edda0113 100644 (file)
@@ -1,3 +1,8 @@
+1998-01-05  Brendan Kehoe  <brendan@lisa.cygnus.com>
+
+       * std/bastring.cc (basic_string::Rep::operator delete): Don't claim
+       to return from deallocate, since this is a void method.
+
 Sat Jan  3 12:15:41 1998 Franz Sirl <franz.sirl-kernel@lauterbach.com>
 
        * configure.in: Finalize support for {alpha|powerpc}*-*-linux-gnulibc1
index b5be65f3ee359e7e19426df54c2fcc2f4ac95c12..7556ed9c60937fc205e5bf9c924b3486a30c72ca 100644 (file)
@@ -40,9 +40,9 @@ template <class charT, class traits, class Allocator>
 inline void basic_string <charT, traits, Allocator>::Rep::
 operator delete (void * ptr)
 {
-  return Allocator::deallocate(ptr, sizeof(Rep) +
-                              reinterpret_cast<Rep *>(ptr)->res *
-                              sizeof (charT)); 
+  Allocator::deallocate(ptr, sizeof(Rep) +
+                       reinterpret_cast<Rep *>(ptr)->res *
+                       sizeof (charT)); 
 }
 
 template <class charT, class traits, class Allocator>
This page took 0.066423 seconds and 5 git commands to generate.