Bug 1013646 - Fix build failure with GCC < 4.7 after bug 992357. r=jchen
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 21 May 2014 11:28:39 +0900
changeset 184051 656d74108b62afce59b84d674805396115352502
parent 184050 e5977dabe9411263d8ba9257f4425f6a51dc4151
child 184052 cf53e366410feb1c5baa58182c62cb82a3aa6592
push id26810
push usercbook@mozilla.com
push dateWed, 21 May 2014 11:46:36 +0000
treeherdermozilla-central@50fb8c4db2fd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1013646, 992357
milestone32.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 1013646 - Fix build failure with GCC < 4.7 after bug 992357. r=jchen
widget/android/NativeJSContainer.cpp
--- a/widget/android/NativeJSContainer.cpp
+++ b/widget/android/NativeJSContainer.cpp
@@ -437,17 +437,17 @@ struct PrimitiveProperty
     }
 
     static ArrayType NewArray(JNIEnv* env, jobject instance, JSContext* cx,
                               JS::HandleObject array, size_t length) {
         ScopedDeleteArray<Type> buffer(new Type[length]);
         for (size_t i = 0; i < length; i++) {
             JS::RootedValue elem(cx);
             if (!CheckJSCall(env, JS_GetElement(cx, array, i, &elem)) ||
-                !CheckProperty<InValue>(env, cx, elem)) {
+                !CheckProperty<PrimitiveProperty::InValue>(env, cx, elem)) {
                 return nullptr;
             }
             buffer[i] = FromValue(env, instance, cx, elem);
         }
         AutoLocalJNIFrame frame(env, 1);
         ArrayType jarray = (env->*NewArrayMethod)(length);
         if (!jarray) {
             return nullptr;