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.

This commit is contained in:
jag%tty.nl 2006-05-15 10:15:05 +00:00
Родитель 4976b37e9a
Коммит bfd2577045
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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)
};