mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 11:58:55 +00:00
Directly calling const char* const() operator to avoid ambiguity on Solaris. r=mcmullen@netscape.com
This commit is contained in:
parent
061e28870c
commit
2562e3d148
@ -208,7 +208,7 @@ nsPluginStreamToFile::nsPluginStreamToFile(const char* target, nsIPluginInstance
|
||||
// construct the URL we'll use later in calls to GetURL()
|
||||
mFileURL = mFileSpec;
|
||||
|
||||
printf("File URL = %s\n", (const char*)mFileURL);
|
||||
printf("File URL = %s\n", mFileURL.operator const char* const());
|
||||
}
|
||||
|
||||
nsPluginStreamToFile::~nsPluginStreamToFile()
|
||||
@ -250,7 +250,7 @@ nsPluginStreamToFile::Write(const char* aBuf, PRUint32 aCount, PRUint32 *aWriteC
|
||||
PRUint32 actualCount;
|
||||
mFileThing->Write(aBuf, aCount, &actualCount);
|
||||
mFileThing->Close();
|
||||
mOwner->GetURL(mFileURL, mTarget, nsnull);
|
||||
mOwner->GetURL(mFileURL.operator const char* const(), mTarget, nsnull);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@ -258,7 +258,7 @@ nsPluginStreamToFile::Write(const char* aBuf, PRUint32 aCount, PRUint32 *aWriteC
|
||||
NS_IMETHODIMP
|
||||
nsPluginStreamToFile::Close(void)
|
||||
{
|
||||
mOwner->GetURL(mFileURL, mTarget, nsnull);
|
||||
mOwner->GetURL(mFileURL.operator const char* const(), mTarget, nsnull);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ nsPluginStreamToFile::nsPluginStreamToFile(const char* target, nsIPluginInstance
|
||||
// construct the URL we'll use later in calls to GetURL()
|
||||
mFileURL = mFileSpec;
|
||||
|
||||
printf("File URL = %s\n", (const char*)mFileURL);
|
||||
printf("File URL = %s\n", mFileURL.operator const char* const());
|
||||
}
|
||||
|
||||
nsPluginStreamToFile::~nsPluginStreamToFile()
|
||||
@ -250,7 +250,7 @@ nsPluginStreamToFile::Write(const char* aBuf, PRUint32 aCount, PRUint32 *aWriteC
|
||||
PRUint32 actualCount;
|
||||
mFileThing->Write(aBuf, aCount, &actualCount);
|
||||
mFileThing->Close();
|
||||
mOwner->GetURL(mFileURL, mTarget, nsnull);
|
||||
mOwner->GetURL(mFileURL.operator const char* const(), mTarget, nsnull);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@ -258,7 +258,7 @@ nsPluginStreamToFile::Write(const char* aBuf, PRUint32 aCount, PRUint32 *aWriteC
|
||||
NS_IMETHODIMP
|
||||
nsPluginStreamToFile::Close(void)
|
||||
{
|
||||
mOwner->GetURL(mFileURL, mTarget, nsnull);
|
||||
mOwner->GetURL(mFileURL.operator const char* const(), mTarget, nsnull);
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user