Bug 1411034 - Remove the const to fix the -Wignored-qualifiers warning r=froydnj
authorSylvestre Ledru <sledru@mozilla.com>
Mon, 23 Oct 2017 22:40:30 +0200
changeset 387931 bf9838fd466c02f4283ff3f885bae02fc21a9acb
parent 387930 5e2f01509206884e1e5a63042c55924dc4c655c4
child 387932 82528ab21c0f84adeda6e794d7000f195fce5888
push id32739
push useracraciun@mozilla.com
push dateWed, 25 Oct 2017 09:29:21 +0000
treeherdermozilla-central@252a8528c5ab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1411034
milestone58.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1411034 - Remove the const to fix the -Wignored-qualifiers warning r=froydnj MozReview-Commit-ID: 8BIWJpv9Odz
dom/bindings/ErrorResult.h
--- a/dom/bindings/ErrorResult.h
+++ b/dom/bindings/ErrorResult.h
@@ -70,17 +70,17 @@ GetErrorArgCount(const ErrNum aErrorNumb
 namespace binding_detail {
 void ThrowErrorMessage(JSContext* aCx, const unsigned aErrorNumber, ...);
 } // namespace binding_detail
 
 template<typename... Ts>
 inline bool
 ThrowErrorMessage(JSContext* aCx, const ErrNum aErrorNumber, Ts&&... aArgs)
 {
-  binding_detail::ThrowErrorMessage(aCx, static_cast<const unsigned>(aErrorNumber),
+  binding_detail::ThrowErrorMessage(aCx, static_cast<unsigned>(aErrorNumber),
                                     mozilla::Forward<Ts>(aArgs)...);
   return false;
 }
 
 struct StringArrayAppender
 {
   static void Append(nsTArray<nsString>& aArgs, uint16_t aCount)
   {