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:
bryner%brianryner.com 2004-09-05 21:29:45 +00:00
parent 5a1fc34073
commit 6b2f8733f0

View File

@ -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__