From cf120f99b977cc1db9ed66b99fbae12c313b432a Mon Sep 17 00:00:00 2001
From: Tristan Matthews <tristan.matthews@savoirfairelinux.com>
Date: Wed, 14 Aug 2013 10:59:03 -0400
Subject: [PATCH] * #28351: sdes_negotiator: use range-based for loops

---
 daemon/src/sip/sdes_negotiator.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/daemon/src/sip/sdes_negotiator.cpp b/daemon/src/sip/sdes_negotiator.cpp
index df8c608579..b6c437b83a 100644
--- a/daemon/src/sip/sdes_negotiator.cpp
+++ b/daemon/src/sip/sdes_negotiator.cpp
@@ -93,14 +93,13 @@ std::vector<CryptoAttribute *> SdesNegotiator::parse()
 
     std::vector<CryptoAttribute *> cryptoAttributeVector;
 
-    for (std::vector<std::string>::iterator iter = remoteAttribute_.begin();
-            iter != remoteAttribute_.end(); ++iter) {
+    for (const auto &iter : remoteAttribute_) {
 
         // Split the line into its component
         // that we will analyze further down.
         std::vector<std::string> sdesLine;
 
-        *generalSyntaxPattern << (*iter);
+        *generalSyntaxPattern << iter;
 
         try {
             sdesLine = generalSyntaxPattern->split();
-- 
GitLab