Fix the places where we forward declare already_AddRefed as a struct, no bug, r=I'm-sick-and-tired-of-MSVC-stupidity
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 17 Jun 2014 10:57:23 -0400
changeset 209926 9ef4f19043e232c8bc4670c96c92cf8860506853
parent 209925 56b033bd8c47eaad89d557767c0e0fd20aa4756a
child 209927 e7e9304438df59d953db6feda7fb410ef99187e6
push id3857
push userraliiev@mozilla.com
push dateTue, 02 Sep 2014 16:39:23 +0000
treeherdermozilla-beta@5638b907b505 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersI
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Fix the places where we forward declare already_AddRefed as a struct, no bug, r=I'm-sick-and-tired-of-MSVC-stupidity
content/media/gmp/GMPService.h
dom/bindings/Exceptions.h
dom/filehandle/MemoryStreams.h
ipc/glue/BackgroundParent.h
layout/base/nsILayoutHistoryState.h
--- a/content/media/gmp/GMPService.h
+++ b/content/media/gmp/GMPService.h
@@ -10,17 +10,17 @@
 #include "nsIObserver.h"
 #include "nsTArray.h"
 #include "mozilla/Mutex.h"
 #include "nsString.h"
 #include "nsCOMPtr.h"
 #include "nsIThread.h"
 
 class nsIFile;
-template <class> class already_AddRefed;
+template <class> struct already_AddRefed;
 
 namespace mozilla {
 namespace gmp {
 
 class GMPParent;
 
 class GeckoMediaPluginService MOZ_FINAL : public mozIGeckoMediaPluginService
                                         , public nsIObserver
--- a/dom/bindings/Exceptions.h
+++ b/dom/bindings/Exceptions.h
@@ -9,17 +9,17 @@
 // DOM exception throwing machinery (for both main thread and workers).
 
 #include <stdint.h>
 #include "jspubtd.h"
 #include "nsIException.h"
 
 class nsIStackFrame;
 template <class T>
-class already_AddRefed;
+struct already_AddRefed;
 
 namespace mozilla {
 namespace dom {
 
 class Exception;
 
 bool
 Throw(JSContext* cx, nsresult rv, const char* sz = nullptr);
--- a/dom/filehandle/MemoryStreams.h
+++ b/dom/filehandle/MemoryStreams.h
@@ -5,17 +5,17 @@
  * You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #ifndef mozilla_dom_MemoryStreams_h
 #define mozilla_dom_MemoryStreams_h
 
 #include "nsIOutputStream.h"
 #include "nsString.h"
 
-template <class> class already_AddRefed;
+template <class> struct already_AddRefed;
 
 namespace mozilla {
 namespace dom {
 
 class MemoryOutputStream : public nsIOutputStream
 {
 public:
   NS_DECL_THREADSAFE_ISUPPORTS
--- a/ipc/glue/BackgroundParent.h
+++ b/ipc/glue/BackgroundParent.h
@@ -4,17 +4,17 @@
 
 #ifndef mozilla_ipc_backgroundparent_h__
 #define mozilla_ipc_backgroundparent_h__
 
 #include "base/process.h"
 #include "mozilla/Attributes.h"
 #include "mozilla/ipc/Transport.h"
 
-template <class> class already_AddRefed;
+template <class> struct already_AddRefed;
 
 namespace mozilla {
 namespace dom {
 
 class ContentParent;
 
 } // namespace dom
 
--- a/layout/base/nsILayoutHistoryState.h
+++ b/layout/base/nsILayoutHistoryState.h
@@ -10,17 +10,17 @@
 
 #ifndef _nsILayoutHistoryState_h
 #define _nsILayoutHistoryState_h
 
 #include "nsISupports.h"
 #include "nsStringFwd.h"
 
 class nsPresState;
-template<typename> class already_AddRefed;
+template<typename> struct already_AddRefed;
 
 #define NS_ILAYOUTHISTORYSTATE_IID \
 { 0x5208993e, 0xd812, 0x431e, \
   { 0x95, 0x9c, 0xc3, 0x84, 0x5b, 0x6e, 0x5a, 0xce } }
 
 class nsILayoutHistoryState : public nsISupports {
  public: 
   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILAYOUTHISTORYSTATE_IID)