Bug 1088130 - Change for loop in GMP OP gtest so that it builds with VisualStudio 2010. r=bobowen
authorChris Pearce <cpearce@mozilla.com>
Mon, 03 Nov 2014 22:40:00 +0000
changeset 213821 619279d965d1
parent 213820 88041cfff520
child 213822 954632f3b2d6
push id51338
push userbobowencode@gmail.com
push dateTue, 04 Nov 2014 08:59:13 +0000
treeherdermozilla-inbound@619279d965d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbobowen
bugs1088130
milestone36.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 1088130 - Change for loop in GMP OP gtest so that it builds with VisualStudio 2010. r=bobowen
dom/media/gmp-plugin/gmp-test-output-protection.h
--- a/dom/media/gmp-plugin/gmp-test-output-protection.h
+++ b/dom/media/gmp-plugin/gmp-test-output-protection.h
@@ -107,18 +107,18 @@ RunOutputProtectionAPITests()
   // Other APIs are tested in the callback function.
   std::vector<std::string> failureMsgs;
   if (!EnumDisplayMonitors(NULL, NULL, EnumDisplayMonitorsCallback,
                            (LPARAM) &failureMsgs)) {
     FakeDecryptor::Message("FAIL EnumDisplayMonitors call failed");
   }
 
   // Report any failures in the callback function.
-  for (auto& msg : failureMsgs) {
-    FakeDecryptor::Message(msg);
+  for (size_t i = 0; i < failureMsgs.size(); i++) {
+    FakeDecryptor::Message(failureMsgs[i]);
   }
 #endif
 }
 
 static void
 TestOuputProtectionAPIs()
 {
   RunOutputProtectionAPITests();