matching Troy's recent checkins adding const to some method parameters. Didn't compile for me using VC6 until I made these changes. They seem harmless enough.

This commit is contained in:
danm%netscape.com 1999-02-15 05:21:53 +00:00
parent 24ff0846f8
commit ce43b5aa79
3 changed files with 4 additions and 4 deletions

View File

@ -228,7 +228,7 @@ nsBrowserAppCore::SetContentWindow(nsIDOMWindow* aWin)
globalObj->GetWebShell(&webShell);
if (nsnull != webShell) {
webShell->SetObserver(this);
PRUnichar * name;
const PRUnichar * name;
webShell->GetName( &name);
nsAutoString str(name);
@ -253,7 +253,7 @@ nsBrowserAppCore::SetWebShellWindow(nsIDOMWindow* aWin)
nsIWebShell * webShell;
globalObj->GetWebShell(&webShell);
if (nsnull != webShell) {
PRUnichar * name;
const PRUnichar * name;
webShell->GetName( &name);
nsAutoString str(name);

View File

@ -183,7 +183,7 @@ NS_IMETHODIMP nsXULCommand::SetCommand(const nsString & aStrCmd)
//----------------------------------------------------------------------
NS_IMETHODIMP nsXULCommand::DoCommand()
{
PRUnichar * name;
const PRUnichar * name;
mWebShell->GetName( &name);
nsAutoString str(name);

View File

@ -222,7 +222,7 @@ void nsBrowserController::doUpdateToolbarState(void)
if (NS_SUCCEEDED(rv)) {
nsAutoString name;
PRInt32 index = 0;
PRUnichar* url;
const PRUnichar * url;
mWebWindow->GetHistoryIndex(index);
rv = mWebWindow->GetURL(index, &url);