mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
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:
parent
24ff0846f8
commit
ce43b5aa79
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user