diff options
Diffstat (limited to 'include/Exceptions.h')
-rw-r--r-- | include/Exceptions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/Exceptions.h b/include/Exceptions.h index f04970c..8c37342 100644 --- a/include/Exceptions.h +++ b/include/Exceptions.h @@ -51,7 +51,7 @@ class Base { void * malloc(ssize_t s) const { return xmalloc(s); } - void * realloc(void * p, size_t s) { + void * realloc(void * p, size_t s) const { return xrealloc(p, s); } void * operator new(size_t s) { @@ -63,10 +63,10 @@ class Base { void operator delete(void * p) { xfree(p); } - void free(void * p) const { + void free(void *& p) const { xfree(p); } - void free(char * p) const { + void free(char *& p) const { xfree((void *) p); } }; |