summaryrefslogtreecommitdiffstats
path: root/dom/bindings
diff options
context:
space:
mode:
authortrav90 <travawine@protonmail.ch>2018-08-10 15:21:45 -0500
committertrav90 <travawine@protonmail.ch>2018-08-10 15:21:45 -0500
commit9b48c3fa58c4926341e1668fdfec131ada3147a1 (patch)
tree708b9afdc8fd84dfeafb22327732abeda61a4087 /dom/bindings
parentf7219526788d3170a5d8de33f7adf13afe38d581 (diff)
downloadUXP-9b48c3fa58c4926341e1668fdfec131ada3147a1.tar
UXP-9b48c3fa58c4926341e1668fdfec131ada3147a1.tar.gz
UXP-9b48c3fa58c4926341e1668fdfec131ada3147a1.tar.lz
UXP-9b48c3fa58c4926341e1668fdfec131ada3147a1.tar.xz
UXP-9b48c3fa58c4926341e1668fdfec131ada3147a1.zip
Remove the const to fix the -Wignored-qualifiers warning with GCC 8 (Part 2)
Diffstat (limited to 'dom/bindings')
-rw-r--r--dom/bindings/BindingUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dom/bindings/BindingUtils.cpp b/dom/bindings/BindingUtils.cpp
index 7056658a7..323feca52 100644
--- a/dom/bindings/BindingUtils.cpp
+++ b/dom/bindings/BindingUtils.cpp
@@ -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();