From bfd257704510bcaa9443ec323101e6f9675213fc Mon Sep 17 00:00:00 2001 From: "jag%tty.nl" Date: Mon, 15 May 2006 10:15:05 +0000 Subject: [PATCH] Only have the nsIContent_base constructor when MOZILLA_INTERNAL_API is defined. The base class constructor it calls won't exist otherwise. Caught by mrbkap. --- content/base/public/nsIContent.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/base/public/nsIContent.h b/content/base/public/nsIContent.h index e7fada48457..3eeaec3372c 100644 --- a/content/base/public/nsIContent.h +++ b/content/base/public/nsIContent.h @@ -66,10 +66,15 @@ class nsAttrName; // hack to make egcs / gcc 2.95.2 happy class nsIContent_base : public nsINode { public: +#ifdef MOZILLA_INTERNAL_API + // If you're using the external API, the only thing you can know about + // nsIContent is that it exists with an IID + nsIContent_base(nsINodeInfo *aNodeInfo) : nsINode(aNodeInfo) { } +#endif NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTENT_IID) };