Correct nsWebBrowserFind.cpp checkin to fix bustage using NS_NAMED_LITERAL_STRING

git-svn-id: svn://10.0.0.236/trunk@130397 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronl%netscape.com
2002-09-25 00:56:34 +00:00
parent b3b4b8b70c
commit 7aa4d6dbcd

View File

@@ -109,8 +109,9 @@ NS_IMETHODIMP nsWebBrowserFind::FindNext(PRBool *outDidFind)
do_CreateInstance(NS_SUPPORTS_PRBOOL_CONTRACTID, &rv);
NS_ENSURE_SUCCESS(rv, rv);
didExecute->SetData(PR_FALSE);
observerService->NotifyObservers(didExecute, "nsWebBrowserFind_FindAgain", mFindBackwards? NS_LITERAL_STRING("up").get()
: NS_LITERAL_STRING("down").get());
NS_NAMED_LITERAL_STRING(downString, "down");
NS_NAMED_LITERAL_STRING(upString, "up");
observerService->NotifyObservers(didExecute, "nsWebBrowserFind_FindAgain", mFindBackwards? upString.get(): downString.get());
didExecute->GetData(outDidFind);
if (*outDidFind)
return NS_OK;