Bug 1337358 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in js/ - follow up r=bbouvier
authorSylvestre Ledru <sledru@mozilla.com>
Wed, 15 Feb 2017 16:59:58 +0100
changeset 343107 9d1b280faca1c227646818c3f32e43120683977f
parent 343106 1d166276a6e4ab346c6afeeb01cd8729ae3fb1cf
child 343108 95eabf0aa83b70bd943676e5f394002d9b9815df
push id31369
push userkwierso@gmail.com
push dateThu, 16 Feb 2017 00:18:40 +0000
treeherdermozilla-central@e9b926463f9e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbouvier
bugs1337358
milestone54.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 1337358 - Converts for(...; ...; ...) loops to use the new range-based loops in C++11 in js/ - follow up r=bbouvier MozReview-Commit-ID: 7KanuTsFIu4
js/src/ctypes/CTypes.cpp
--- a/js/src/ctypes/CTypes.cpp
+++ b/js/src/ctypes/CTypes.cpp
@@ -4566,17 +4566,17 @@ CType::Trace(JSTracer* trc, JSObject* ob
       return;
 
     FunctionInfo* fninfo = static_cast<FunctionInfo*>(slot.toPrivate());
     MOZ_ASSERT(fninfo);
 
     // Identify our objects to the tracer.
     JS::TraceEdge(trc, &fninfo->mABI, "abi");
     JS::TraceEdge(trc, &fninfo->mReturnType, "returnType");
-    for (auto & argType : fninfo->mArgTypes)
+    for (auto& argType : fninfo->mArgTypes)
       JS::TraceEdge(trc, &argType, "argType");
 
     break;
   }
   default:
     // Nothing to do here.
     break;
   }