mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-08 00:38:39 +09:00
Remove the const to fix the -Wignored-qualifiers warning with GCC 8 (Part 2)
This commit is contained in:
parent
c8cdcbc5a7
commit
8fd121628a
4 changed files with 5 additions and 5 deletions
|
|
@ -119,7 +119,7 @@ ThrowInvalidThis(JSContext* aCx, const JS::CallArgs& aArgs,
|
|||
MSG_METHOD_THIS_DOES_NOT_IMPLEMENT_INTERFACE;
|
||||
MOZ_RELEASE_ASSERT(GetErrorArgCount(errorNumber) <= 2);
|
||||
JS_ReportErrorNumberUC(aCx, GetErrorMessage, nullptr,
|
||||
static_cast<const unsigned>(errorNumber),
|
||||
static_cast<unsigned>(errorNumber),
|
||||
funcNameStr.get(), ifaceName.get());
|
||||
return false;
|
||||
}
|
||||
|
|
@ -226,7 +226,7 @@ TErrorResult<CleanupPolicy>::SetPendingExceptionWithMessage(JSContext* aCx)
|
|||
args[argCount] = nullptr;
|
||||
|
||||
JS_ReportErrorNumberUCArray(aCx, dom::GetErrorMessage, nullptr,
|
||||
static_cast<const unsigned>(message->mErrorNumber),
|
||||
static_cast<unsigned>(message->mErrorNumber),
|
||||
argCount > 0 ? args : nullptr);
|
||||
|
||||
ClearMessage();
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
using namespace mozilla;
|
||||
|
||||
// Yikes! Casting a char to unichar can fill with ones!
|
||||
#define CHAR_TO_UNICHAR(c) ((char16_t)(const unsigned char)c)
|
||||
#define CHAR_TO_UNICHAR(c) ((char16_t)(unsigned char)c)
|
||||
|
||||
static NS_DEFINE_CID(kCContentIteratorCID, NS_CONTENTITERATOR_CID);
|
||||
static NS_DEFINE_CID(kCPreContentIteratorCID, NS_PRECONTENTITERATOR_CID);
|
||||
|
|
|
|||
|
|
@ -1000,7 +1000,7 @@ PendingLookup::GetSpecHash(nsACString& aSpec, nsACString& hexEncodedHash)
|
|||
static const char* const hex = "0123456789ABCDEF";
|
||||
hexEncodedHash.SetCapacity(2 * binaryHash.Length());
|
||||
for (size_t i = 0; i < binaryHash.Length(); ++i) {
|
||||
auto c = static_cast<const unsigned char>(binaryHash[i]);
|
||||
auto c = static_cast<unsigned char>(binaryHash[i]);
|
||||
hexEncodedHash.Append(hex[(c >> 4) & 0x0F]);
|
||||
hexEncodedHash.Append(hex[c & 0x0F]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ struct SafebrowsingHash
|
|||
|
||||
aStr.SetCapacity(2 * len);
|
||||
for (size_t i = 0; i < len; ++i) {
|
||||
const char c = static_cast<const char>(buf[i]);
|
||||
const char c = static_cast<char>(buf[i]);
|
||||
aStr.Append(lut[(c >> 4) & 0x0F]);
|
||||
aStr.Append(lut[c & 15]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue