mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Added const to definition
This commit is contained in:
parent
3060f3cea1
commit
f0d49a6d57
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user