mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Removed gcc 2.95+ ifdefs to trade one annoying warning for a less annoying one.
This commit is contained in:
parent
f0889ec840
commit
af786fe1e7
@ -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*/) {}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user