Commits

ms2ger  committed 0c22906

Fix opt build error.

  • Participants
  • Parent commits 7c52cb4

Comments (0)

Files changed (1)

 new file mode 100644
 --- /dev/null
 +++ b/js/xpconnect/src/XPCLock.h
-@@ -0,0 +1,115 @@
+@@ -0,0 +1,116 @@
 +/* This Source Code Form is subject to the terms of the Mozilla Public
 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
 +#ifndef XPCLock_h
 +#define XPCLock_h
 +
++#include "mozilla/Attributes.h"
 +#include "mozilla/GuardObjects.h"
 +#include "mozilla/ReentrantMonitor.h"
 +
 +    // Not meant to be implemented. This makes it a compiler error to
 +    // attempt to create an XPCAutoLock object on the heap.
 +    static void *operator new(size_t /*size*/) CPP_THROW_NEW {
-+        return nsnull;
++        return NULL;
 +    }
 +    static void operator delete(void */*memory*/) {}
 +};
 +    // Not meant to be implemented. This makes it a compiler error to
 +    // attempt to create an XPCAutoUnlock object on the heap.
 +    static void *operator new(size_t /*size*/) CPP_THROW_NEW {
-+        return nsnull;
++        return NULL;
 +    }
 +    static void operator delete(void */*memory*/) {}
 +};