Repository: trafficserver
Updated Branches:
  refs/heads/master 7643ccd17 -> ffeaff3e6


TS-4132: Remove auto


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/ffeaff3e
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/ffeaff3e
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/ffeaff3e

Branch: refs/heads/master
Commit: ffeaff3e6d357c23bfc65e0fc250941d13824f1d
Parents: 7643ccd
Author: Bryan Call <[email protected]>
Authored: Thu Feb 11 18:44:08 2016 -0800
Committer: Bryan Call <[email protected]>
Committed: Thu Feb 11 18:44:08 2016 -0800

----------------------------------------------------------------------
 plugins/experimental/inliner/html-parser.cc     | 10 ++++-----
 plugins/experimental/inliner/inliner-handler.cc | 22 ++++++++++----------
 2 files changed, 16 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ffeaff3e/plugins/experimental/inliner/html-parser.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/inliner/html-parser.cc 
b/plugins/experimental/inliner/html-parser.cc
index 1365bf8..a7dd9f1 100644
--- a/plugins/experimental/inliner/html-parser.cc
+++ b/plugins/experimental/inliner/html-parser.cc
@@ -34,12 +34,12 @@ namespace inliner
   Attributes::operator std::string(void) const
   {
     std::string result;
-    for (const auto &item : *this) {
-      if (!item.first.empty()) {
-        if (!item.second.empty()) {
-          result += item.first + "=\"" + item.second += "\" ";
+    for (Attributes::const_iterator item = begin() ; item != end(); ++item) {
+      if (!item->first.empty()) {
+        if (!item->second.empty()) {
+          result += item->first + "=\"" + item->second += "\" ";
         } else {
-          result += item.first;
+          result += item->first;
         }
       }
     }

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/ffeaff3e/plugins/experimental/inliner/inliner-handler.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/inliner/inliner-handler.cc 
b/plugins/experimental/inliner/inliner-handler.cc
index 8037b06..b5c3340 100644
--- a/plugins/experimental/inliner/inliner-handler.cc
+++ b/plugins/experimental/inliner/inliner-handler.cc
@@ -94,9 +94,9 @@ namespace inliner
   {
     std::string src;
 
-    for (const auto &item : a) {
-      if (!item.first.empty()) {
-        src = item.second;
+    for (Attributes::const_iterator item = a.begin() ; item != a.end(); 
++item) {
+      if (!item->first.empty()) {
+        src = item->second;
       }
     }
 
@@ -105,17 +105,17 @@ namespace inliner
 
     if (isTagged) {
       std::string classes, original = " ";
-      for (const auto &item : a) {
-        if (!item.first.empty()) {
-          if (!item.second.empty()) {
-            if (item.first == "class") {
-              classes = item.second;
-            } else if (item.first.find("src") == std::string::npos) {
-              original += item.first + "=\"" + item.second += "\" ";
+      for (Attributes::const_iterator item = a.begin() ; item != a.end(); 
++item) {
+        if (!item->first.empty()) {
+          if (!item->second.empty()) {
+            if (item->first == "class") {
+              classes = item->second;
+            } else if (item->first.find("src") == std::string::npos) {
+              original += item->first + "=\"" + item->second += "\" ";
             }
           }
         } else {
-          original += item.first + " ";
+          original += item->first + " ";
         }
       }
 

Reply via email to