More random flailing to fix gcc-2.7.2.3

This commit is contained in:
waterson%netscape.com 1999-11-24 23:39:34 +00:00
Родитель 1260e2100c
Коммит dd7c188516
4 изменённых файлов: 20 добавлений и 36 удалений

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

@ -1996,8 +1996,14 @@ nsXULDocument::CreateFromPrototype(const char* aCommand,
getter_AddRefs(loadgroup));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIStreamObserver> loader;
rv = nsXULDocument::CachedChromeLoader::Create(this, getter_AddRefs(loader));
CachedChromeLoader* loader = new CachedChromeLoader(this);
if (! loader)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(loader);
nsCOMPtr<nsIStreamObserver> anchor = do_QueryInterface(loader, &rv);
NS_RELEASE(loader);
if (NS_FAILED(rv)) return rv;
rv = loadgroup->Init(loader);
@ -5559,18 +5565,6 @@ nsXULDocument::CachedChromeLoader::~CachedChromeLoader()
NS_RELEASE(mDocument);
}
nsresult
nsXULDocument::CachedChromeLoader::Create(nsXULDocument* aDocument, nsIStreamObserver** aResult)
{
CachedChromeLoader* loader = new CachedChromeLoader(aDocument);
if (! loader)
return NS_ERROR_OUT_OF_MEMORY;
*aResult = loader;
NS_ADDREF(*aResult);
return NS_OK;
}
NS_IMPL_ADDREF(nsXULDocument::CachedChromeLoader);
NS_IMPL_RELEASE(nsXULDocument::CachedChromeLoader);

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

@ -752,14 +752,12 @@ protected:
class CachedChromeLoader : public nsIStreamObserver
{
protected:
CachedChromeLoader(nsXULDocument* aDocument);
virtual ~CachedChromeLoader();
nsXULDocument* mDocument;
PRBool mLoading;
public:
static nsresult Create(nsXULDocument* aDocument, nsIStreamObserver** aResult);
CachedChromeLoader(nsXULDocument* aDocument);
virtual ~CachedChromeLoader();
// nsISupports interface
NS_DECL_ISUPPORTS

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

@ -1996,8 +1996,14 @@ nsXULDocument::CreateFromPrototype(const char* aCommand,
getter_AddRefs(loadgroup));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIStreamObserver> loader;
rv = nsXULDocument::CachedChromeLoader::Create(this, getter_AddRefs(loader));
CachedChromeLoader* loader = new CachedChromeLoader(this);
if (! loader)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(loader);
nsCOMPtr<nsIStreamObserver> anchor = do_QueryInterface(loader, &rv);
NS_RELEASE(loader);
if (NS_FAILED(rv)) return rv;
rv = loadgroup->Init(loader);
@ -5559,18 +5565,6 @@ nsXULDocument::CachedChromeLoader::~CachedChromeLoader()
NS_RELEASE(mDocument);
}
nsresult
nsXULDocument::CachedChromeLoader::Create(nsXULDocument* aDocument, nsIStreamObserver** aResult)
{
CachedChromeLoader* loader = new CachedChromeLoader(aDocument);
if (! loader)
return NS_ERROR_OUT_OF_MEMORY;
*aResult = loader;
NS_ADDREF(*aResult);
return NS_OK;
}
NS_IMPL_ADDREF(nsXULDocument::CachedChromeLoader);
NS_IMPL_RELEASE(nsXULDocument::CachedChromeLoader);

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

@ -752,14 +752,12 @@ protected:
class CachedChromeLoader : public nsIStreamObserver
{
protected:
CachedChromeLoader(nsXULDocument* aDocument);
virtual ~CachedChromeLoader();
nsXULDocument* mDocument;
PRBool mLoading;
public:
static nsresult Create(nsXULDocument* aDocument, nsIStreamObserver** aResult);
CachedChromeLoader(nsXULDocument* aDocument);
virtual ~CachedChromeLoader();
// nsISupports interface
NS_DECL_ISUPPORTS