nsAutoPopupStatePusherExternal
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 69 d09f8c6883b5fea4797d39d21345ead6b7f96ed3
permissions -rw-r--r--
State as of now

diff --git a/dom/public/base/nsPIDOMWindow.h b/dom/public/base/nsPIDOMWindow.h
--- a/dom/public/base/nsPIDOMWindow.h
+++ b/dom/public/base/nsPIDOMWindow.h
@@ -442,7 +442,7 @@ PopPopupControlState(PopupControlState a
 // library.  We give the two object layouts different names so the symbols
 // don't conflict, but code should always use the name
 // |nsAutoPopupStatePusher|.
-class NS_AUTO_POPUP_STATE_PUSHER
+class NS_STACK_CLASS NS_AUTO_POPUP_STATE_PUSHER
 {
 public:
 #ifdef _IMPL_NS_LAYOUT
@@ -480,8 +480,8 @@ protected:
 
 private:
   // 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*/) {}
+  static void* operator new(size_t /*size*/) CPP_THROW_NEW;
+  static void operator delete(void* /*memory*/);
 };
 
 #define nsAutoPopupStatePusher NS_AUTO_POPUP_STATE_PUSHER