mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 01:57:00 +00:00
fix nsAutoString->nsString& casting problem on unix by creating a temporary
This commit is contained in:
parent
1902331069
commit
db9707b47e
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user