Remove the const to fix the -Wignored-qualifiers warning with GCC 8 (Part 2)

This commit is contained in:
trav90 2018-08-10 15:21:45 -05:00 committed by Roy Tam
commit 8fd121628a
4 changed files with 5 additions and 5 deletions

View file

@ -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();