Added nsISupports back in as the super class of nsViewerApp and

NS_INIT_REFCNT in the constructor
This commit is contained in:
rods%netscape.com 1998-10-09 17:25:36 +00:00
parent c3c8bb57f8
commit 6d565076b4
2 changed files with 3 additions and 1 deletions

View File

@ -73,6 +73,8 @@ static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
nsViewerApp::nsViewerApp()
{
NS_INIT_REFCNT();
char * text = PR_GetEnv("NGLAYOUT_HOME");
mStartURL = text ? text : "resource:/res/samples/test0.html";
mDelay = 1;

View File

@ -29,7 +29,7 @@ class nsWebCrawler;
class nsBrowserWindow;
class nsIBrowserWindow;
class nsViewerApp : public nsDispatchListener
class nsViewerApp : public nsISupports, public nsDispatchListener
{
public:
void* operator new(size_t sz) {