зеркало из https://github.com/mozilla/gecko-dev.git
Bug 222524 CompareRawSortKey should be null-safe r=smontagu sr=bienvenu
This commit is contained in:
Родитель
525a14b3ed
Коммит
2eacfbcae1
|
@ -55,7 +55,7 @@ public:
|
|||
NS_IMETHOD CompareRawSortKey(const PRUint8* key1, const PRUint32 len1,
|
||||
const PRUint8* key2, const PRUint32 len2,
|
||||
PRInt32* result)
|
||||
{*result = strcmp((const char *)key1, (const char *)key2); return NS_OK;}
|
||||
{*result = PL_strcmp((const char *)key1, (const char *)key2); return NS_OK;}
|
||||
|
||||
// init this interface to a specified locale (should only be called by collation factory)
|
||||
//
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
NS_IMETHOD CompareRawSortKey(const PRUint8* key1, const PRUint32 len1,
|
||||
const PRUint8* key2, const PRUint32 len2,
|
||||
PRInt32* result)
|
||||
{*result = UniStrcmp((UniChar *)key1, (UniChar *)key2); return NS_OK;}
|
||||
{*result = nsCRT::strcmp((PRUnichar *)key1, (PRUnichar *)key2); return NS_OK;}
|
||||
|
||||
// init this interface to a specified locale (should only be called by collation factory)
|
||||
//
|
||||
|
|
|
@ -62,7 +62,7 @@ public:
|
|||
NS_IMETHOD CompareRawSortKey(const PRUint8* key1, const PRUint32 len1,
|
||||
const PRUint8* key2, const PRUint32 len2,
|
||||
PRInt32* result)
|
||||
{*result = strcmp((const char *)key1, (const char *)key2); return NS_OK;}
|
||||
{*result = PL_strcmp((const char *)key1, (const char *)key2); return NS_OK;}
|
||||
|
||||
// init this interface to a specified locale (should only be called by collation factory)
|
||||
//
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
NS_IMETHOD CompareRawSortKey(const PRUint8* key1, const PRUint32 len1,
|
||||
const PRUint8* key2, const PRUint32 len2,
|
||||
PRInt32* result)
|
||||
{*result = strcmp((const char *)key1, (const char *)key2); return NS_OK;}
|
||||
{*result = PL_strcmp((const char *)key1, (const char *)key2); return NS_OK;}
|
||||
|
||||
// init this interface to a specified locale (should only be called by collation factory)
|
||||
//
|
||||
|
|
Загрузка…
Ссылка в новой задаче