]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Fix compilation issue on older compilers
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 14 Feb 2020 10:48:15 +0000 (11:48 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 14 Feb 2020 12:39:16 +0000 (13:39 +0100)
pdns/filterpo.hh

index aea360658a155e630e3726b498c08f233f63c405..2498ba7e499e735c37c0a7eed8091b85aedb8279 100644 (file)
@@ -203,20 +203,20 @@ public:
     }
     void setPriority(Priority p) {
       d_priority = p;
-      for (auto& pol : d_qpolName) {
-        pol.second.d_priority = p;
+      for (auto& pair : d_qpolName) {
+        pair.second.d_priority = p;
       }
-      for (auto& pol: d_qpolAddr) {
-        pol->second.d_priority = p;
+      for (auto& pair : d_propolName) {
+        pair.second.d_priority = p;
       }
-      for (auto& pol: d_propolName) {
-        pol.second.d_priority = p;
+      for (auto pair : d_qpolAddr) {
+        pair->second.d_priority = p;
       }
-      for (auto& pol: d_propolNSAddr) {
-        pol->second.d_priority = p;
+      for (auto pair : d_propolNSAddr) {
+        pair->second.d_priority = p;
       }
-      for (auto& pol: d_postpolAddr) {
-        pol->second.d_priority = p;
+      for (auto pair : d_postpolAddr) {
+        pair->second.d_priority = p;
       }
     }
   private: