зеркало из https://github.com/mozilla/gecko-dev.git
Fixing build error on unix.
This commit is contained in:
Родитель
03345897e4
Коммит
22cc3e20d1
|
@ -2698,12 +2698,12 @@ nsWebShell::ReloadDocument(const char* aCharset,
|
||||||
s = (nsString*) mHistory.ElementAt(mHistoryIndex);
|
s = (nsString*) mHistory.ElementAt(mHistoryIndex);
|
||||||
#else
|
#else
|
||||||
if (mSHist) {
|
if (mSHist) {
|
||||||
PRInt32 index = 0;
|
PRInt32 indix = 0;
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
rv = mSHist->getCurrentIndex(index);
|
rv = mSHist->getCurrentIndex(indix);
|
||||||
if (NS_SUCCEEDED(rv)) {
|
if (NS_SUCCEEDED(rv)) {
|
||||||
PRUnichar * url=nsnull;
|
const PRUnichar * url=nsnull;
|
||||||
rv = mSHist->GetURLForIndex(index, &url);
|
rv = mSHist->GetURLForIndex(indix, &url);
|
||||||
if (NS_SUCCEEDED(rv))
|
if (NS_SUCCEEDED(rv))
|
||||||
s = new nsString(url);
|
s = new nsString(url);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2698,12 +2698,12 @@ nsWebShell::ReloadDocument(const char* aCharset,
|
||||||
s = (nsString*) mHistory.ElementAt(mHistoryIndex);
|
s = (nsString*) mHistory.ElementAt(mHistoryIndex);
|
||||||
#else
|
#else
|
||||||
if (mSHist) {
|
if (mSHist) {
|
||||||
PRInt32 index = 0;
|
PRInt32 indix = 0;
|
||||||
nsresult rv;
|
nsresult rv;
|
||||||
rv = mSHist->getCurrentIndex(index);
|
rv = mSHist->getCurrentIndex(indix);
|
||||||
if (NS_SUCCEEDED(rv)) {
|
if (NS_SUCCEEDED(rv)) {
|
||||||
PRUnichar * url=nsnull;
|
const PRUnichar * url=nsnull;
|
||||||
rv = mSHist->GetURLForIndex(index, &url);
|
rv = mSHist->GetURLForIndex(indix, &url);
|
||||||
if (NS_SUCCEEDED(rv))
|
if (NS_SUCCEEDED(rv))
|
||||||
s = new nsString(url);
|
s = new nsString(url);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче