update to sync with nsString2

This commit is contained in:
rickg%netscape.com 1999-04-22 00:07:20 +00:00
parent f37212bffa
commit e3b6b95c27

View File

@ -86,7 +86,7 @@ nsBrowserController::Initialize(nsIDOMDocument* aDocument, nsISupports* aContain
if (NS_SUCCEEDED(rv)) {
nsAutoString name("browser.webwindow");
rv = mWebShell->FindChildWithName(name, mWebWindow);
rv = mWebShell->FindChildWithName(name.GetUnicode(), mWebWindow);
/*
* If a web shell was found, then hook up an IDOMLoadEvent listener
*/
@ -168,7 +168,7 @@ nsresult nsBrowserController::KeyUp(nsIDOMEvent* aKeyEvent)
nsAutoString name;
element->GetValue(name);
mWebWindow->LoadURL(name);
mWebWindow->LoadURL(name.GetUnicode());
NS_RELEASE(element);
}
}