diff options
author | Pixel <Pixel> | 2001-09-23 22:10:43 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-09-23 22:10:43 +0000 |
commit | ec2ecbd35bea64c88ab783b06100edc65c418048 (patch) | |
tree | f270dc1a013c3fe26170e63bc2be8d8a3ca936d0 /lib/Exceptions.cc | |
parent | 76fde1f5b754845bd9b40cf9b2f15734686f6d09 (diff) |
Some IRC features...
Diffstat (limited to 'lib/Exceptions.cc')
-rw-r--r-- | lib/Exceptions.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Exceptions.cc b/lib/Exceptions.cc index b5a33bd..734e5e9 100644 --- a/lib/Exceptions.cc +++ b/lib/Exceptions.cc @@ -17,15 +17,15 @@ void * Base::malloc(ssize_t s) const { return xmalloc(s); } -/* + void * Base::operator new(size_t s) { return memset(xmalloc(s), 0, s); } -void * Base::operator new(size_t s, void * & p) { - return memset(p = xmalloc(s), 0, s); +void * Base::operator new(size_t s, void * p) { + memset(p, 0, s); + return p; } -*/ GeneralException::GeneralException(String emsg) : msg(strdup(emsg.to_charp())) { } GeneralException::GeneralException() : msg(0) { } |