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 id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersglandium
bugs911914
milestone26.0a1
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