Skip to content
Snippets Groups Projects
Commit cf120f99 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

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

parent f5417983
No related branches found
No related tags found
No related merge requests found
...@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment