diff options
Diffstat (limited to 'include/Exceptions.h')
-rw-r--r-- | include/Exceptions.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/Exceptions.h b/include/Exceptions.h index 052002e..090ace9 100644 --- a/include/Exceptions.h +++ b/include/Exceptions.h @@ -45,13 +45,13 @@ class String; class Base { public: - char * strdup(const char * s) const { + static char * strdup(const char * s) { return xstrdup(s); } - void * malloc(ssize_t s) const { + static void * malloc(ssize_t s) { return xmalloc(s); } - void * realloc(void * p, size_t s) const { + static void * realloc(void * p, size_t s) { 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 { + static void free(void *& p) { xfree(p); } - void free(char *& p) const { + static void free(char *& p) { xfree((void *) p); } }; |