From 75abf86728ff966d2b3c1e34a6ead7f6fb672513 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Mon, 19 Nov 2012 20:05:34 -0500 Subject: [PATCH] Bug 811466 - Add include guards around some headers which were missing them. r=khuey --- content/base/src/mozAutoDocUpdate.h | 5 +++++ content/base/src/nsCCUncollectableMarker.h | 5 +++++ content/xbl/src/nsXBLService.h | 4 ++++ dom/base/nsDOMWindowUtils.h | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/content/base/src/mozAutoDocUpdate.h b/content/base/src/mozAutoDocUpdate.h index 2e0463229d89..912d6e615a2b 100644 --- a/content/base/src/mozAutoDocUpdate.h +++ b/content/base/src/mozAutoDocUpdate.h @@ -2,6 +2,9 @@ * 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" @@ -82,3 +85,5 @@ public: private: nsCOMPtr mDocument; }; + +#endif diff --git a/content/base/src/nsCCUncollectableMarker.h b/content/base/src/nsCCUncollectableMarker.h index b802a289c412..920990ba202e 100644 --- a/content/base/src/nsCCUncollectableMarker.h +++ b/content/base/src/nsCCUncollectableMarker.h @@ -3,6 +3,9 @@ * 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" @@ -45,3 +48,5 @@ namespace dom { void TraceBlackJS(JSTracer* aTrc); } } + +#endif diff --git a/content/xbl/src/nsXBLService.h b/content/xbl/src/nsXBLService.h index 2e09601d4e2d..81a18b3df114 100644 --- a/content/xbl/src/nsXBLService.h +++ b/content/xbl/src/nsXBLService.h @@ -5,6 +5,9 @@ ////////////////////////////////////////////////////////////////////////////////////////// +#ifndef nsXBLService_h_ +#define nsXBLService_h_ + #include "nsString.h" #include "nsIObserver.h" #include "nsWeakReference.h" @@ -141,3 +144,4 @@ public: nsrefcnt Drop() { return --mRefCnt ? mRefCnt : Destroy(); } }; +#endif diff --git a/dom/base/nsDOMWindowUtils.h b/dom/base/nsDOMWindowUtils.h index f913b74b76ac..9d2132b6b7b5 100644 --- a/dom/base/nsDOMWindowUtils.h +++ b/dom/base/nsDOMWindowUtils.h @@ -3,6 +3,9 @@ * 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" @@ -48,3 +51,5 @@ protected: static mozilla::widget::Modifiers GetWidgetModifiers(int32_t aModifiers); }; + +#endif