diff --git a/mozilla/content/events/src/nsEventStateManager.h b/mozilla/content/events/src/nsEventStateManager.h index 8fce97b86df..65e5fc57772 100644 --- a/mozilla/content/events/src/nsEventStateManager.h +++ b/mozilla/content/events/src/nsEventStateManager.h @@ -366,9 +366,9 @@ protected: PRBool mIsHandlingUserInput; 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 // nsEventStateManager_h__