Bug 1271483 - p3. constify loop variable - r=cpearce, a=lizzard
authorGerald Squelart <gsquelart@mozilla.com>
Thu, 12 May 2016 15:52:24 +1000
changeset 339791 cebc765f65c5a0638a430782dccbdb974f67c588
parent 339790 6fa9ce65542259983e051d98ee5dbc66c14bdc96
child 339792 a1b956fd336aa0531d3e555528f63368aee14548
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce, lizzard
bugs1271483
milestone49.0a2
Bug 1271483 - p3. constify loop variable - r=cpearce, a=lizzard 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)