From d337ba212ca4a4363f6566d7a59980ee10b6ce7d Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Thu, 22 Nov 2007 12:03:16 +0000 Subject: [PATCH] Polished patch --- devhelp-0.16.1-xulrunner.patch | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/devhelp-0.16.1-xulrunner.patch b/devhelp-0.16.1-xulrunner.patch index eea92b7..8ea59e7 100644 --- a/devhelp-0.16.1-xulrunner.patch +++ b/devhelp-0.16.1-xulrunner.patch @@ -1,20 +1,30 @@ diff -up devhelp-0.16.1/src/Yelper.cpp.xl devhelp-0.16.1/src/Yelper.cpp --- devhelp-0.16.1/src/Yelper.cpp.xl 2007-05-28 09:42:20.000000000 +0200 -+++ devhelp-0.16.1/src/Yelper.cpp 2007-11-22 12:44:11.000000000 +0100 -@@ -41,7 +41,7 @@ ++++ devhelp-0.16.1/src/Yelper.cpp 2007-11-22 13:00:28.000000000 +0100 +@@ -41,7 +41,9 @@ #include #include #include --#include -+//#include ++#ifndef HAVE_GECKO_1_9 + #include ++#endif #include #include #include -@@ -172,7 +172,6 @@ Yelper::Find (const char *aSearchString) - #ifdef HAVE_GECKO_1_9 +@@ -169,16 +171,9 @@ Yelper::Find (const char *aSearchString) + + nsresult rv; + PRUint16 found = nsITypeAheadFind::FIND_NOTFOUND; +-#ifdef HAVE_GECKO_1_9 +- rv = mFinder->Find (NS_ConvertUTF8toUTF16 (aSearchString), +- PR_FALSE /* links only? */, +- mHasFocus, +- &found); +-#else rv = mFinder->Find (NS_ConvertUTF8toUTF16 (aSearchString), PR_FALSE /* links only? */, -- mHasFocus, &found); - #else - rv = mFinder->Find (NS_ConvertUTF8toUTF16 (aSearchString), +-#endif + + return NS_SUCCEEDED (rv) && (found == nsITypeAheadFind::FIND_FOUND || found == nsITypeAheadFind::FIND_WRAPPED); + }