From 71845857dffb2eacdfd772a431f4e5932e60fdd5 Mon Sep 17 00:00:00 2001 From: "aaronl%netscape.com" Date: Tue, 9 Jul 2002 18:46:13 +0000 Subject: [PATCH] Bug 30088. More checkins to extensions/typeaheadfind. Fixes some gcc warnings. Not part of build. git-svn-id: svn://10.0.0.236/trunk@124856 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/typeaheadfind/nsTypeAheadFind.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/extensions/typeaheadfind/nsTypeAheadFind.cpp b/mozilla/extensions/typeaheadfind/nsTypeAheadFind.cpp index 67bdeb24031..9575a0864d3 100644 --- a/mozilla/extensions/typeaheadfind/nsTypeAheadFind.cpp +++ b/mozilla/extensions/typeaheadfind/nsTypeAheadFind.cpp @@ -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)) ||