aboutsummaryrefslogtreecommitdiff
path: root/libstdc++/std
diff options
context:
space:
mode:
authorBrendan Kehoe <brendan@lisa.cygnus.com>1998-01-05 18:35:07 +0000
committerBrendan Kehoe <brendan@lisa.cygnus.com>1998-01-05 18:35:07 +0000
commit7f60458fbc77e787c55b822f5f431f96efc9ebd6 (patch)
tree1ba061222a2c9bd69668f3e4c84edfaac2e97d9d /libstdc++/std
parent4d33e561b7bff4bc1608ce45515918450f9528f3 (diff)
* std/bastring.cc (basic_string::Rep::operator delete): Don't claim
to return from deallocate, since this is a void method. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@17297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++/std')
-rw-r--r--libstdc++/std/bastring.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++/std/bastring.cc b/libstdc++/std/bastring.cc
index b5be65f3ee3..7556ed9c609 100644
--- a/libstdc++/std/bastring.cc
+++ b/libstdc++/std/bastring.cc
@@ -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>