зеркало из https://github.com/mozilla/pjs.git
Added empty throw() on operator new so that gcc 2.95+ doesn't complain about returning NULL.
This commit is contained in:
Родитель
72e0d22417
Коммит
4199ed0d8d
|
@ -125,7 +125,11 @@ public:
|
|||
|
||||
private:
|
||||
// The normal operator new is disallowed on nsFrames.
|
||||
#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
|
||||
void* operator new(size_t sz) throw () { return nsnull; };
|
||||
#else
|
||||
void* operator new(size_t sz) { return nsnull; };
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
|
|
|
@ -125,7 +125,11 @@ public:
|
|||
|
||||
private:
|
||||
// The normal operator new is disallowed on nsFrames.
|
||||
#if (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
|
||||
void* operator new(size_t sz) throw () { return nsnull; };
|
||||
#else
|
||||
void* operator new(size_t sz) { return nsnull; };
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче