Added const to definition

This commit is contained in:
troy%netscape.com 1999-02-14 06:37:24 +00:00
parent 3060f3cea1
commit f0d49a6d57
2 changed files with 3 additions and 3 deletions

View File

@ -460,7 +460,7 @@ GlobalWindowImpl::GetStatus(nsString& aStatus)
{
nsIBrowserWindow *mBrowser;
if (NS_OK == GetBrowserWindowInterface(mBrowser)) {
PRUnichar *status;
const PRUnichar *status;
mBrowser->GetStatus(&status);
aStatus = status;
NS_RELEASE(mBrowser);
@ -494,7 +494,7 @@ GlobalWindowImpl::SetDefaultStatus(const nsString& aDefaultStatus)
NS_IMETHODIMP
GlobalWindowImpl::GetName(nsString& aName)
{
PRUnichar *name;
const PRUnichar *name;
mWebShell->GetName(&name);
aName = name;
return NS_OK;

View File

@ -261,7 +261,7 @@ LocationImpl::GetHref(nsString& aHref)
nsresult result = NS_OK;
if (nsnull != mWebShell) {
PRUnichar *href;
const PRUnichar *href;
mWebShell->GetHistoryIndex(index);
result = mWebShell->GetURL(index, &href);
aHref = href;