don't pass static classes as function parameters

This commit is contained in:
alecf%netscape.com 1998-11-20 09:45:39 +00:00
Родитель 9e8f173714
Коммит 2ca4f27e3e
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -780,7 +780,8 @@ void
nsBrowserWindow::Back()
{
//XXX use javascript instead of mWebShell->Back();
ExecuteJavaScriptString(mWebShell, nsString("window.back();"));
nsString str("window.back();");
ExecuteJavaScriptString(mWebShell, str);
printf("Back executed using JavaScript");
}
@ -789,7 +790,8 @@ void
nsBrowserWindow::Forward()
{
//XXX use javascript instead of mWebShell->Forward();
ExecuteJavaScriptString(mWebShell, nsString("window.forward();"));
nsString str("window.forward();");
ExecuteJavaScriptString(mWebShell, str);
}
//---------------------------------------------------------------
@ -2030,7 +2032,8 @@ nsBrowserWindow::NotifyImageButtonEvent(nsIImageButton * aImgBtn, nsGUIEvent* an
case kHomeCmd : {
//XXX This test using javascript instead of calling directly
ExecuteJavaScriptString(mWebShell, nsString("window.home();"));
nsString str("window.home();");
ExecuteJavaScriptString(mWebShell, str);
// nsString homeURL("http://www.netscape.com");
// mWebShell->LoadURL(homeURL);