Converted some for loops to range-based for loops.
This commit is contained in:
parent
0000fa3e5e
commit
9d2bfcc334
9 changed files with 36 additions and 37 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue