Bug 811466 - Add include guards around some headers which were missing them. r=khuey
authorJustin Lebar <justin.lebar@gmail.com>
Mon, 19 Nov 2012 20:05:34 -0500
changeset 122835 899be7c28b2a2e5cbafe9f11ba3491b17363860d
parent 122834 a9014a296746dc59994dfa3a49b38a987d0b2d6b
child 122836 23bcb80441fa4936eb7cf8c6c58ee00e2b50ebc4
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs811466
milestone20.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
Bug 811466 - Add include guards around some headers which were missing them. r=khuey
content/base/src/mozAutoDocUpdate.h
content/base/src/nsCCUncollectableMarker.h
content/xbl/src/nsXBLService.h
dom/base/nsDOMWindowUtils.h
--- a/content/base/src/mozAutoDocUpdate.h
+++ b/content/base/src/mozAutoDocUpdate.h
@@ -1,12 +1,15 @@
 /* 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 mozAutoDocUpdate_h_
+#define mozAutoDocUpdate_h_
+
 #include "nsContentUtils.h"
 #include "nsIDocument.h"
 #include "nsIDocumentObserver.h"
 
 /**
  * Helper class to automatically handle batching of document updates.  This
  * class will call BeginUpdate on construction and EndUpdate on destruction on
  * the given document with the given update type.  The document could be null,
@@ -77,8 +80,10 @@ public:
     if (mDocument) {
       mDocument->EndUpdate(UPDATE_CONTENT_MODEL);
     }
   }
 
 private:
   nsCOMPtr<nsIDocument> mDocument;
 };
+
+#endif
--- a/content/base/src/nsCCUncollectableMarker.h
+++ b/content/base/src/nsCCUncollectableMarker.h
@@ -1,13 +1,16 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* 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 nsCCUncollectableMarker_h_
+#define nsCCUncollectableMarker_h_
+
 #include "nsIObserver.h"
 #include "nsCycleCollectionParticipant.h"
 #include "mozilla/Attributes.h"
 
 struct JSTracer;
 
 class nsCCUncollectableMarker MOZ_FINAL : public nsIObserver
 {
@@ -40,8 +43,10 @@ private:
 
 };
 
 namespace mozilla {
 namespace dom {
 void TraceBlackJS(JSTracer* aTrc);
 }
 }
+
+#endif
--- a/content/xbl/src/nsXBLService.h
+++ b/content/xbl/src/nsXBLService.h
@@ -1,15 +1,18 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* 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 nsXBLService_h_
+#define nsXBLService_h_
+
 #include "nsString.h"
 #include "nsIObserver.h"
 #include "nsWeakReference.h"
 #include "jsapi.h"              // nsXBLJSClass derives from JSClass
 #include "jsclist.h"            // nsXBLJSClass derives from JSCList
 #include "nsFixedSizeAllocator.h"
 #include "nsTArray.h"
 
@@ -136,8 +139,9 @@ private:
 public:
   nsXBLJSClass(const nsAFlatCString& aClassName);
   ~nsXBLJSClass() { nsMemory::Free((void*) name); }
 
   nsrefcnt Hold() { return ++mRefCnt; }
   nsrefcnt Drop() { return --mRefCnt ? mRefCnt : Destroy(); }
 };
 
+#endif
--- a/dom/base/nsDOMWindowUtils.h
+++ b/dom/base/nsDOMWindowUtils.h
@@ -1,13 +1,16 @@
 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 /* 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 nsDOMWindowUtils_h_
+#define nsDOMWindowUtils_h_
+
 #include "nsAutoPtr.h"
 #include "nsWeakReference.h"
 
 #include "nsIDOMWindowUtils.h"
 #include "nsEvent.h"
 #include "mozilla/Attributes.h"
 
 class nsGlobalWindow;
@@ -43,8 +46,10 @@ protected:
                                   int32_t aModifiers,
                                   bool aIgnoreRootScrollFrame,
                                   float aPressure,
                                   unsigned short aInputSourceArg,
                                   bool aToWindow);
 
   static mozilla::widget::Modifiers GetWidgetModifiers(int32_t aModifiers);
 };
+
+#endif