From ce43b5aa79e572f613a2246532e92b7c09b85852 Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Mon, 15 Feb 1999 05:21:53 +0000 Subject: [PATCH] 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. --- xpfe/AppCores/src/nsBrowserAppCore.cpp | 4 ++-- xpfe/appshell/src/nsXULCommand.cpp | 2 +- xpfe/browser/src/nsBrowserController.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/xpfe/AppCores/src/nsBrowserAppCore.cpp b/xpfe/AppCores/src/nsBrowserAppCore.cpp index 99d74206ef82..85570db54976 100644 --- a/xpfe/AppCores/src/nsBrowserAppCore.cpp +++ b/xpfe/AppCores/src/nsBrowserAppCore.cpp @@ -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); diff --git a/xpfe/appshell/src/nsXULCommand.cpp b/xpfe/appshell/src/nsXULCommand.cpp index fb9c4b2c5c6a..ff2e67468962 100644 --- a/xpfe/appshell/src/nsXULCommand.cpp +++ b/xpfe/appshell/src/nsXULCommand.cpp @@ -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); diff --git a/xpfe/browser/src/nsBrowserController.cpp b/xpfe/browser/src/nsBrowserController.cpp index 19d3eb1dce52..920e29a39146 100644 --- a/xpfe/browser/src/nsBrowserController.cpp +++ b/xpfe/browser/src/nsBrowserController.cpp @@ -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);