From 701226a91b2be65b0dd6d91c8527c5259a6b4801 Mon Sep 17 00:00:00 2001 From: "aaronl%netscape.com" Date: Wed, 25 Sep 2002 00:56:34 +0000 Subject: [PATCH] Correct nsWebBrowserFind.cpp checkin to fix bustage using NS_NAMED_LITERAL_STRING --- embedding/components/find/src/nsWebBrowserFind.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/embedding/components/find/src/nsWebBrowserFind.cpp b/embedding/components/find/src/nsWebBrowserFind.cpp index 7c9d91ca2d53..8bc3deb30d3a 100644 --- a/embedding/components/find/src/nsWebBrowserFind.cpp +++ b/embedding/components/find/src/nsWebBrowserFind.cpp @@ -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;