fix nsAutoString->nsString& casting problem on unix by creating a temporary

This commit is contained in:
alecf%netscape.com 1999-04-16 20:22:21 +00:00
parent 1902331069
commit db9707b47e

View File

@ -1548,8 +1548,9 @@ NS_IMETHODIMP nsWebShellWindow::Init(nsIAppShell* aAppShell,
// Note: null nsIStreamObserver means this window won't be able to answer FE_callback-type
// questions from netlib. Observers are generally appcores. We'll have to supply
// a generic browser appcore here someday.
nsAutoString controllerID("43147b80-8a39-11d2-9938-0080c7cb1081"); // time for this hack to die, or what?
rv = Initialize(nsnull, aAppShell, urlObj,
nsAutoString("43147b80-8a39-11d2-9938-0080c7cb1081"), // time for this hack to die, or what?
controllerID,
nsnull, nsnull, aBounds.width, aBounds.height);
if (NS_SUCCEEDED(rv))
MoveTo(aBounds.x, aBounds.y);
@ -1630,4 +1631,4 @@ NS_IMETHODIMP nsWebShellWindow::SetProgress(PRInt32 aProgress, PRInt32 aProgress
{
// oh yeah. we're on it.
return NS_OK;
}
}