diff --git a/content/xslt/src/xslt/txXPathResultComparator.cpp b/content/xslt/src/xslt/txXPathResultComparator.cpp index ba1904d5c965..b4fcc3f61463 100644 --- a/content/xslt/src/xslt/txXPathResultComparator.cpp +++ b/content/xslt/src/xslt/txXPathResultComparator.cpp @@ -133,7 +133,7 @@ TxObject* txResultStringComparator::createSortableValue(txAExprResult* aExprRes) if (nsCaseKey.IsEmpty()) { return val; } - nsresult rv = mCollation->AllocateRawSortKey(kCollationCaseInSensitive, + nsresult rv = mCollation->AllocateRawSortKey(nsICollation::kCollationCaseInSensitive, nsCaseKey, &val->mKey, &val->mLength); @@ -198,7 +198,7 @@ int txResultStringComparator::compareValues(TxObject* aVal1, TxObject* aVal2) if ((strval1->mCaseLength == 0) && (strval1->mLength != 0)) { nsString* caseString = (nsString *)strval1->mCaseKey; - rv = mCollation->AllocateRawSortKey(kCollationCaseSensitive, + rv = mCollation->AllocateRawSortKey(nsICollation::kCollationCaseSensitive, *caseString, (PRUint8**)&strval1->mCaseKey, &strval1->mCaseLength); @@ -212,7 +212,7 @@ int txResultStringComparator::compareValues(TxObject* aVal1, TxObject* aVal2) } if ((strval2->mCaseLength == 0) && (strval2->mLength != 0)) { nsString* caseString = (nsString *)strval2->mCaseKey; - rv = mCollation->AllocateRawSortKey(kCollationCaseSensitive, + rv = mCollation->AllocateRawSortKey(nsICollation::kCollationCaseSensitive, *caseString, (PRUint8**)&strval2->mCaseKey, &strval2->mCaseLength); diff --git a/content/xslt/src/xslt/txXPathResultComparator.h b/content/xslt/src/xslt/txXPathResultComparator.h index bff621b99029..80a8f36b10df 100644 --- a/content/xslt/src/xslt/txXPathResultComparator.h +++ b/content/xslt/src/xslt/txXPathResultComparator.h @@ -44,9 +44,8 @@ #ifndef TX_EXE #include "nsCOMPtr.h" #include "nsICollation.h" -#else -#include "nsString.h" #endif +#include "nsString.h" class txAExprResult; @@ -88,7 +87,7 @@ private: #ifndef TX_EXE nsCOMPtr mCollation; nsresult init(const nsAFlatString& aLanguage); - nsresult createRawSortKey(const nsCollationStrength aStrength, + nsresult createRawSortKey(const PRInt32 aStrength, const nsString& aString, PRUint8** aKey, PRUint32* aLength);