Removed gcc 2.95+ ifdefs to trade one annoying warning for a less annoying one.

This commit is contained in:
cls%seawood.org 1999-09-12 12:03:20 +00:00
parent f0889ec840
commit af786fe1e7

View File

@ -110,9 +110,7 @@ private:
// Not meant to be implemented. This makes it a compiler error to
// attempt to create an nsAutoLock object on the heap.
static void* operator new(size_t /*size*/) {
#if !(__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
return nsnull;
#endif
}
static void operator delete(void* /*memory*/) {}
@ -200,9 +198,7 @@ private:
// Not meant to be implemented. This makes it a compiler error to
// attempt to create an nsAutoLock object on the heap.
static void* operator new(size_t /*size*/) {
#if !(__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
return nsnull;
#endif
}
static void operator delete(void* /*memory*/) {}
};
@ -262,9 +258,7 @@ private:
// Not meant to be implemented. This makes it a compiler error to
// attempt to create an nsAutoLock object on the heap.
static void* operator new(size_t /*size*/) {
#if !(__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
return nsnull;
#endif
}
static void operator delete(void* /*memory*/) {}
};