From 97b5f363cc6ff7ddd380ec9b8f649168b81fff19 Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Mon, 16 Mar 2015 21:15:10 -0400 Subject: [PATCH] Bug 579517 follow-up: Remove NSPR types that crept in --- dom/bluetooth/bluedroid/BluetoothDaemonHelpers.cpp | 4 ++-- dom/bluetooth2/bluedroid/BluetoothDaemonHelpers.cpp | 4 ++-- dom/media/MediaManager.cpp | 4 ++-- dom/plugins/ipc/PluginAsyncSurrogate.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dom/bluetooth/bluedroid/BluetoothDaemonHelpers.cpp b/dom/bluetooth/bluedroid/BluetoothDaemonHelpers.cpp index 3dacea5be18a..50fce64cd6d3 100644 --- a/dom/bluetooth/bluedroid/BluetoothDaemonHelpers.cpp +++ b/dom/bluetooth/bluedroid/BluetoothDaemonHelpers.cpp @@ -1117,9 +1117,9 @@ PackPDU(const BluetoothAvrcpElementAttribute& aIn, BluetoothDaemonPDU& aPDU) return NS_ERROR_ILLEGAL_VALUE; /* integer overflow detected */ } - PRUint32 clen = cstr.Length() + 1; /* include \0 character */ + uint32_t clen = cstr.Length() + 1; /* include \0 character */ - rv = PackPDU(PackConversion(clen), aPDU); + rv = PackPDU(PackConversion(clen), aPDU); if (NS_FAILED(rv)) { return rv; } diff --git a/dom/bluetooth2/bluedroid/BluetoothDaemonHelpers.cpp b/dom/bluetooth2/bluedroid/BluetoothDaemonHelpers.cpp index daef6083fa01..540985f05f14 100644 --- a/dom/bluetooth2/bluedroid/BluetoothDaemonHelpers.cpp +++ b/dom/bluetooth2/bluedroid/BluetoothDaemonHelpers.cpp @@ -1070,9 +1070,9 @@ PackPDU(const BluetoothAvrcpElementAttribute& aIn, BluetoothDaemonPDU& aPDU) return NS_ERROR_ILLEGAL_VALUE; /* integer overflow detected */ } - PRUint32 clen = cstr.Length() + 1; /* include \0 character */ + uint32_t clen = cstr.Length() + 1; /* include \0 character */ - rv = PackPDU(PackConversion(clen), aPDU); + rv = PackPDU(PackConversion(clen), aPDU); if (NS_FAILED(rv)) { return rv; } diff --git a/dom/media/MediaManager.cpp b/dom/media/MediaManager.cpp index 503460f4a4b0..39876d1bc22c 100644 --- a/dom/media/MediaManager.cpp +++ b/dom/media/MediaManager.cpp @@ -112,8 +112,8 @@ using dom::SupportedVideoConstraints; static bool HostInDomain(const nsCString &aHost, const nsCString &aPattern) { - PRInt32 patternOffset = 0; - PRInt32 hostOffset = 0; + int32_t patternOffset = 0; + int32_t hostOffset = 0; // Act on '*.' wildcard in the left-most position in a domain pattern. if (aPattern.Length() > 2 && aPattern[0] == '*' && aPattern[1] == '.') { diff --git a/dom/plugins/ipc/PluginAsyncSurrogate.cpp b/dom/plugins/ipc/PluginAsyncSurrogate.cpp index 71ff12d7583a..f1e18ab04f22 100644 --- a/dom/plugins/ipc/PluginAsyncSurrogate.cpp +++ b/dom/plugins/ipc/PluginAsyncSurrogate.cpp @@ -436,7 +436,7 @@ PluginAsyncSurrogate::SetStreamType(NPStream* aStream, uint16_t aStreamType) void PluginAsyncSurrogate::OnInstanceCreated(PluginInstanceParent* aInstance) { - for (PRUint32 i = 0, len = mPendingNewStreamCalls.Length(); i < len; ++i) { + for (uint32_t i = 0, len = mPendingNewStreamCalls.Length(); i < len; ++i) { PendingNewStreamCall& curPendingCall = mPendingNewStreamCalls[i]; uint16_t streamType = NP_NORMAL; NPError curError = aInstance->NPP_NewStream(