Converted some for loops to range-based for loops.

This commit is contained in:
binary1248 2017-04-02 04:02:22 +02:00
parent 0000fa3e5e
commit 9d2bfcc334
9 changed files with 36 additions and 37 deletions

View file

@ -103,8 +103,8 @@ int main()
sf::Ftp::ListingResponse response = server.getDirectoryListing();
std::cout << response << std::endl;
const std::vector<std::string>& names = response.getListing();
for (std::vector<std::string>::const_iterator it = names.begin(); it != names.end(); ++it)
std::cout << *it << std::endl;
for (const auto& name : names)
std::cout << name << std::endl;
break;
}