Commit cf120f99 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28351: sdes_negotiator: use range-based for loops

parent f5417983
...@@ -93,14 +93,13 @@ std::vector<CryptoAttribute *> SdesNegotiator::parse() ...@@ -93,14 +93,13 @@ std::vector<CryptoAttribute *> SdesNegotiator::parse()
std::vector<CryptoAttribute *> cryptoAttributeVector; std::vector<CryptoAttribute *> cryptoAttributeVector;
for (std::vector<std::string>::iterator iter = remoteAttribute_.begin(); for (const auto &iter : remoteAttribute_) {
iter != remoteAttribute_.end(); ++iter) {
// Split the line into its component // Split the line into its component
// that we will analyze further down. // that we will analyze further down.
std::vector<std::string> sdesLine; std::vector<std::string> sdesLine;
*generalSyntaxPattern << (*iter); *generalSyntaxPattern << iter;
try { try {
sdesLine = generalSyntaxPattern->split(); sdesLine = generalSyntaxPattern->split();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment