lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 819cf38 2/2: Modernize a for statement


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 819cf38 2/2: Modernize a for statement
Date: Sat, 14 Jan 2017 16:59:27 +0000 (UTC)

branch: master
commit 819cf38c945b1a4e9f3bb7aa9f385dfe7c474389
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Modernize a for statement
---
 authenticity_test.cpp |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/authenticity_test.cpp b/authenticity_test.cpp
index 4962e51..8e12a15 100644
--- a/authenticity_test.cpp
+++ b/authenticity_test.cpp
@@ -127,11 +127,10 @@ void PasskeyTest::RemoveTestFiles(char const* file, int 
line) const
     filenames.push_back("passkey");
     filenames.push_back("coleridge");
     filenames.push_back(md5sum_file());
-    typedef std::vector<std::string>::const_iterator aut0;
-    for(aut0 i = filenames.begin(); i != filenames.end(); ++i)
+    for(auto const& i : filenames)
         {
-        std::remove(i->c_str());
-        INVOKE_BOOST_TEST(!fs::exists(*i), file, line);
+        std::remove(i.c_str());
+        INVOKE_BOOST_TEST(!fs::exists(i), file, line);
         }
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]