Bug 1271483 - p3. constify loop variable - r=cpearce draft
authorGerald Squelart <gsquelart@mozilla.com>
Thu, 12 May 2016 15:52:24 +1000
changeset 380466 91962b143ae4813c017fb11b14a9d9fd374f6ce6
parent 380465 16db19c21ae8e594196959afb5a7178b1dd3ca16
child 380467 5034c13188262c8f7ff83b80efbe0fb55078cf57
push id21229
push usergsquelart@mozilla.com
push dateWed, 22 Jun 2016 01:27:56 +0000
reviewerscpearce
bugs1271483
milestone50.0a1
Bug 1271483 - p3. constify loop variable - r=cpearce MozReview-Commit-ID: zp0VicPXxk
dom/media/DecoderDoctorDiagnostics.cpp
--- a/dom/media/DecoderDoctorDiagnostics.cpp
+++ b/dom/media/DecoderDoctorDiagnostics.cpp
@@ -368,17 +368,17 @@ DecoderDoctorDocumentWatcher::Synthesize
 #endif
   nsAutoString playableFormats;
   nsAutoString unplayableFormats;
   nsAutoString supportedKeySystems;
   nsAutoString unsupportedKeySystems;
   DecoderDoctorDiagnostics::KeySystemIssue lastKeySystemIssue =
     DecoderDoctorDiagnostics::eUnset;
 
-  for (auto& diag : mDiagnosticsSequence) {
+  for (const auto& diag : mDiagnosticsSequence) {
     switch (diag.mDecoderDoctorDiagnostics.Type()) {
       case DecoderDoctorDiagnostics::eFormatSupportCheck:
         if (diag.mDecoderDoctorDiagnostics.CanPlay()) {
           canPlay = true;
           AppendToStringList(playableFormats,
                              diag.mDecoderDoctorDiagnostics.Format());
         } else {
 #if defined(XP_WIN)