[cpp-xmltooling] 01/02: Fix loop inc warning.

Scott Cantor cantor.2 at osu.edu
Fri Apr 27 14:29:52 EDT 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-xmltooling.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-xmltooling.git;a=commit;h=03b495e16364c77deb1608901f998ab4f5ad60eb

commit 03b495e16364c77deb1608901f998ab4f5ad60eb
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Apr 27 14:28:28 2018 -0400

    Fix loop inc warning.
---
 xmltooling/exceptions.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/xmltooling/exceptions.cpp b/xmltooling/exceptions.cpp
index e722a56..3a4d5ac 100644
--- a/xmltooling/exceptions.cpp
+++ b/xmltooling/exceptions.cpp
@@ -125,10 +125,9 @@ void XMLToolingException::addProperties(const namedparams& p)
 {
     m_processedmsg.erase();
     const vector<const char*>& v = p.get();
-    for (vector<const char*>::const_iterator ci = v.begin(); ci != v.end(); ++ci) {
+    for (vector<const char*>::const_iterator ci = v.begin(); ci != v.end(); ci+=2) {
         m_params.erase(*ci);
         m_params[*ci] = *(ci+1);
-        ++ci;   // advance past name to value, then loop will advance it again
     }
 }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list