Bug 30088. More checkins to extensions/typeaheadfind. Fixes some gcc warnings. Not part of build.

This commit is contained in:
aaronl%netscape.com 2002-07-09 18:46:13 +00:00
Родитель bbbdd59649
Коммит 2ed9f88210
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -129,7 +129,7 @@ nsTypeAheadFind::nsTypeAheadFind():
#ifdef DEBUG
// There should only ever be one instance of us
static gInstanceCount;
static PRInt32 gInstanceCount;
++gInstanceCount;
NS_ASSERTION(gInstanceCount == 1, "There should be only 1 instance of nsTypeAheadFind, someone is creating more than 1.");
#endif
@ -701,7 +701,7 @@ nsresult nsTypeAheadFind::FindItNow(PRBool aIsLinksOnly, PRBool aIsFirstVisibleP
if (!returnRange)
break;
// ------- Test resulting found range for success conditions ------
PRBool isInsideLink, isStartingLink, isInsideViewPort = PR_TRUE;
PRBool isInsideLink, isStartingLink;
RangeStartsInsideLink(returnRange, presShell, &isInsideLink, &isStartingLink);
if (!IsRangeVisible(presShell, presContext, returnRange, aIsFirstVisiblePreferred, getter_AddRefs(startPointRange)) ||