mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 579517 follow-up: Remove NSPR types that crept in
This commit is contained in:
parent
03cc56112b
commit
ac35497057
@ -1012,7 +1012,7 @@ nsEventListenerManager::AddListenerForAllEvents(nsIDOMEventListener* aListener,
|
||||
bool aWantsUntrusted,
|
||||
bool aSystemEventGroup)
|
||||
{
|
||||
PRInt32 flags = aUseCapture ? NS_EVENT_FLAG_CAPTURE : NS_EVENT_FLAG_BUBBLE;
|
||||
int32_t flags = aUseCapture ? NS_EVENT_FLAG_CAPTURE : NS_EVENT_FLAG_BUBBLE;
|
||||
if (aWantsUntrusted) {
|
||||
flags |= NS_PRIV_EVENT_UNTRUSTED_PERMITTED;
|
||||
}
|
||||
@ -1027,7 +1027,7 @@ nsEventListenerManager::RemoveListenerForAllEvents(nsIDOMEventListener* aListene
|
||||
bool aUseCapture,
|
||||
bool aSystemEventGroup)
|
||||
{
|
||||
PRInt32 flags = aUseCapture ? NS_EVENT_FLAG_CAPTURE : NS_EVENT_FLAG_BUBBLE;
|
||||
int32_t flags = aUseCapture ? NS_EVENT_FLAG_CAPTURE : NS_EVENT_FLAG_BUBBLE;
|
||||
if (aSystemEventGroup) {
|
||||
flags |= NS_EVENT_FLAG_SYSTEM_EVENT;
|
||||
}
|
||||
|
@ -236,7 +236,7 @@ ArchiveRequest::GetFilesResult(JSContext* aCx,
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
for (PRUint32 i = 0; i < aFileList.Length(); ++i) {
|
||||
for (uint32_t i = 0; i < aFileList.Length(); ++i) {
|
||||
nsCOMPtr<nsIDOMFile> file = aFileList[i];
|
||||
|
||||
JS::Value value;
|
||||
|
@ -398,7 +398,7 @@ MobileConnection::CancelMMI(nsIDOMDOMRequest** request)
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
MobileConnection::GetCallForwardingOption(PRUint16 aReason,
|
||||
MobileConnection::GetCallForwardingOption(uint16_t aReason,
|
||||
nsIDOMDOMRequest** aRequest)
|
||||
{
|
||||
*aRequest = nullptr;
|
||||
|
@ -313,7 +313,7 @@ TestIgnoreDiskCache(nsIFile* profileDir) {
|
||||
const char* buf = "Get a Beardbook app for your smartphone";
|
||||
const char* id = "id";
|
||||
char* outbuf = NULL;
|
||||
PRUint32 len;
|
||||
uint32_t len;
|
||||
|
||||
rv = sc->PutBuffer(id, buf, strlen(buf) + 1);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
@ -909,7 +909,7 @@ WinUtils::ConvertHRGNToRegion(HRGN aRgn)
|
||||
nsIntRegion rgn;
|
||||
|
||||
DWORD size = ::GetRegionData(aRgn, 0, NULL);
|
||||
nsAutoTArray<PRUint8,100> buffer;
|
||||
nsAutoTArray<uint8_t,100> buffer;
|
||||
if (!buffer.SetLength(size))
|
||||
return rgn;
|
||||
|
||||
@ -923,7 +923,7 @@ WinUtils::ConvertHRGNToRegion(HRGN aRgn)
|
||||
}
|
||||
|
||||
RECT* rects = reinterpret_cast<RECT*>(data->Buffer);
|
||||
for (PRUint32 i = 0; i < data->rdh.nCount; ++i) {
|
||||
for (uint32_t i = 0; i < data->rdh.nCount; ++i) {
|
||||
RECT* r = rects + i;
|
||||
rgn.Or(rgn, ToIntRect(*r));
|
||||
}
|
||||
|
@ -592,8 +592,8 @@ OpenFile(const nsAFlatString &name, int osflags, int mode,
|
||||
{
|
||||
int32_t access = 0;
|
||||
|
||||
PRInt32 disposition = 0;
|
||||
PRInt32 attributes = 0;
|
||||
int32_t disposition = 0;
|
||||
int32_t attributes = 0;
|
||||
|
||||
if (osflags & PR_SYNC)
|
||||
attributes = FILE_FLAG_WRITE_THROUGH;
|
||||
|
Loading…
Reference in New Issue
Block a user