Pass in a null nsIURLGroup to the image group...

This commit is contained in:
rpotts%netscape.com 1998-10-01 21:53:52 +00:00
parent 98bab44460
commit aba40ac4a7
4 changed files with 4 additions and 4 deletions

View File

@ -488,7 +488,7 @@ nsThrobber::LoadThrobberImages(const nsString& aFileNameMask, PRInt32 aNumImages
}
nsIDeviceContext *deviceCtx = mWidget->GetDeviceContext();
mImageGroup->Init(deviceCtx);
mImageGroup->Init(deviceCtx, nsnull);
NS_RELEASE(deviceCtx);
rv = NS_NewTimer(&mTimer);

View File

@ -199,7 +199,7 @@ MyLoadImage(char *aFileName)
if (gImageGroup == NULL) {
nsIDeviceContext *deviceCtx = gWindow->GetDeviceContext();
if (NS_NewImageGroup(&gImageGroup) != NS_OK ||
gImageGroup->Init(deviceCtx) != NS_OK) {
gImageGroup->Init(deviceCtx, nsnull) != NS_OK) {
::MessageBox(NULL, "Couldn't create image group",
class1Name, MB_OK);
NS_RELEASE(deviceCtx);

View File

@ -360,7 +360,7 @@ nsresult nsImageButton::CreateImageGroup()
nsIDeviceContext * deviceCtx = GetDeviceContext();
mImageGroup->Init(deviceCtx);
mImageGroup->Init(deviceCtx, nsnull);
NS_RELEASE(deviceCtx);
}

View File

@ -821,7 +821,7 @@ char *str;
if (gImageGroup == NULL)
{
nsIDeviceContext *deviceCtx = scribbleData.mContext;
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx) != NS_OK)
if (NS_NewImageGroup(&gImageGroup) != NS_OK || gImageGroup->Init(deviceCtx, nsnull) != NS_OK)
{
NS_RELEASE(deviceCtx);
return;