mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Provide an inline implementation of private operator new and delete, for compilers that think they need the definition. Fixes AIX and probably IRIX bustage.
This commit is contained in:
parent
5a1fc34073
commit
6b2f8733f0
@ -183,9 +183,9 @@ protected:
|
||||
PopupControlState mOldState;
|
||||
|
||||
private:
|
||||
// Not meant to be implemented.
|
||||
static void* operator new(size_t /*size*/) CPP_THROW_NEW;
|
||||
static void operator delete(void* /*memory*/);
|
||||
// Hide so that this class can only be stack-allocated
|
||||
static void* operator new(size_t /*size*/) CPP_THROW_NEW { return nsnull; }
|
||||
static void operator delete(void* /*memory*/) {}
|
||||
};
|
||||
|
||||
#endif // nsPIDOMWindow_h__
|
||||
|
Loading…
Reference in New Issue
Block a user