Bug 911914 - Cannot build BionicGlue.cpp with --enable-android-libstdcxx. r=glandium
authorMakoto Kato <m_kato@ga2.so-net.ne.jp>
Tue, 03 Sep 2013 18:39:35 +0900
changeset 145315 60147d584aadc4d935238fddfc3a9e7ddc447625
parent 145314 e6acba1186f4e40aa8967aaf770410ae79b0a927
child 145316 8b1eb0307c500c538101a22cd4628a230149ddc4
push id25208
push userryanvm@gmail.com
push dateTue, 03 Sep 2013 21:41:13 +0000
treeherdermozilla-central@e3785e299ab6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs911914
milestone26.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 911914 - Cannot build BionicGlue.cpp with --enable-android-libstdcxx. r=glandium
mozglue/build/BionicGlue.cpp
--- a/mozglue/build/BionicGlue.cpp
+++ b/mozglue/build/BionicGlue.cpp
@@ -97,31 +97,31 @@ WRAP(pthread_atfork)(void (*prepare)(voi
 }
 
 extern "C" pid_t __fork(void);
 
 extern "C" NS_EXPORT pid_t
 WRAP(fork)(void)
 {
   pid_t pid;
-  for (std::vector<AtForkFuncs>::reverse_iterator it = atfork.rbegin();
+  for (auto it = atfork.rbegin();
        it < atfork.rend(); ++it)
     if (it->prepare)
       it->prepare();
 
   switch ((pid = __fork())) {
   case 0:
     cpuacct_add(getuid());
-    for (std::vector<AtForkFuncs>::iterator it = atfork.begin();
+    for (auto it = atfork.begin();
          it < atfork.end(); ++it)
       if (it->child)
         it->child();
     break;
   default:
-    for (std::vector<AtForkFuncs>::iterator it = atfork.begin();
+    for (auto it = atfork.begin();
          it < atfork.end(); ++it)
       if (it->parent)
         it->parent();
   }
   return pid;
 }
 #endif