OSDN Git Service

* std/bastring.cc (basic_string::Rep::operator delete): Don't claim
authorbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jan 1998 18:35:07 +0000 (18:35 +0000)
committerbrendan <brendan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Jan 1998 18:35:07 +0000 (18:35 +0000)
to return from deallocate, since this is a void method.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17297 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b53b779..ffe617a 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 b5be65f..7556ed9 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>