mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 820219 - Remove the PR_ prefix for a few PR_[U]INT32_MAX that has been added since bug 791906. r=roc
This commit is contained in:
parent
5dea188129
commit
fcd6628cae
@ -7,8 +7,7 @@
|
||||
#ifndef DirectionalityUtils_h___
|
||||
#define DirectionalityUtils_h___
|
||||
|
||||
#include "prtypes.h"
|
||||
#include "mozilla/StandardInteger.h"
|
||||
#include "nscore.h"
|
||||
|
||||
class nsIContent;
|
||||
class nsIDocument;
|
||||
|
@ -273,7 +273,7 @@ inline static bool NodeAffectsDirAutoAncestor(nsINode* aTextNode)
|
||||
* first-strong algorithm defined in http://unicode.org/reports/tr9/#P2
|
||||
*
|
||||
* @param[out] aFirstStrong the offset to the first character in the string with
|
||||
* strong directionality, or PR_UINT32_MAX if there is none (return
|
||||
* strong directionality, or UINT32_MAX if there is none (return
|
||||
value is eDir_NotSet).
|
||||
* @return the directionality of the string
|
||||
*/
|
||||
@ -304,7 +304,7 @@ GetDirectionFromText(const PRUnichar* aText, const uint32_t aLength,
|
||||
}
|
||||
|
||||
if (aFirstStrong) {
|
||||
*aFirstStrong = PR_UINT32_MAX;
|
||||
*aFirstStrong = UINT32_MAX;
|
||||
}
|
||||
return eDir_NotSet;
|
||||
}
|
||||
@ -330,7 +330,7 @@ GetDirectionFromText(const char* aText, const uint32_t aLength,
|
||||
}
|
||||
|
||||
if (aFirstStrong) {
|
||||
*aFirstStrong = PR_UINT32_MAX;
|
||||
*aFirstStrong = UINT32_MAX;
|
||||
}
|
||||
return eDir_NotSet;
|
||||
}
|
||||
|
@ -335,7 +335,7 @@ nsDOMDataChannel::GetSendParams(nsIVariant* aData, nsCString& aStringOut,
|
||||
uint64_t blobLen;
|
||||
rv = blob->GetSize(&blobLen);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
if (blobLen > PR_UINT32_MAX) {
|
||||
if (blobLen > UINT32_MAX) {
|
||||
return NS_ERROR_FILE_TOO_BIG;
|
||||
}
|
||||
aOutgoingLength = static_cast<uint32_t>(blobLen);
|
||||
|
@ -106,7 +106,7 @@ GenerateRandomBytes(uint32_t aSize,
|
||||
|
||||
// On Unix, we'll just read in from /dev/urandom.
|
||||
#elif defined(XP_UNIX)
|
||||
NS_ENSURE_ARG_MAX(aSize, PR_INT32_MAX);
|
||||
NS_ENSURE_ARG_MAX(aSize, INT32_MAX);
|
||||
PRFileDesc* urandom = PR_Open("/dev/urandom", PR_RDONLY, 0);
|
||||
nsresult rv = NS_ERROR_FAILURE;
|
||||
if (urandom) {
|
||||
|
Loading…
Reference in New Issue
Block a user