Removed gcc 2.95+ ifdefs to trade one annoying warning for a less annoying one.
git-svn-id: svn://10.0.0.236/trunk@47051 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
f1c0f17632
commit
0f01bea98e
@ -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…
x
Reference in New Issue
Block a user