Well, not everybody could do it just from the forward declared class. Yes, nsCOMPtr.h and nsIWeakReference.h include eachother, but it works anyway (they test for already being included).

This commit is contained in:
scc%netscape.com 1999-08-03 07:44:53 +00:00
Родитель ea78a0060a
Коммит 4756a19b59
2 изменённых файлов: 10 добавлений и 4 удалений

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

@ -32,6 +32,11 @@
// for |nsresult|, |NS_ADDREF|, et al
#endif
#ifndef __gen_nsIWeakReference_h__
#include "nsIWeakReference.h"
// for |nsIWeakReference|
#endif
/*
Public things defined in this file:
@ -169,8 +174,6 @@
#define NSCAP_RELEASE(ptr) (ptr)->Release()
#endif
class nsIWeakReference;
/*
WARNING:
VC++4.2 is very picky. To compile under VC++4.2, the classes must be defined

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

@ -32,6 +32,11 @@
// for |nsresult|, |NS_ADDREF|, et al
#endif
#ifndef __gen_nsIWeakReference_h__
#include "nsIWeakReference.h"
// for |nsIWeakReference|
#endif
/*
Public things defined in this file:
@ -169,8 +174,6 @@
#define NSCAP_RELEASE(ptr) (ptr)->Release()
#endif
class nsIWeakReference;
/*
WARNING:
VC++4.2 is very picky. To compile under VC++4.2, the classes must be defined