summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Examples/BenchTool')
-rw-r--r--Swiften/Examples/BenchTool/BenchTool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/Examples/BenchTool/BenchTool.cpp b/Swiften/Examples/BenchTool/BenchTool.cpp
index f7337b9..d56baed 100644
--- a/Swiften/Examples/BenchTool/BenchTool.cpp
+++ b/Swiften/Examples/BenchTool/BenchTool.cpp
@@ -53,14 +53,14 @@ int main(int, char**) {
clients.push_back(client);
}
- for (size_t i = 0; i < clients.size(); ++i) {
- clients[i]->connect();
+ for (auto& client : clients) {
+ client->connect();
}
eventLoop.run();
- for (size_t i = 0; i < clients.size(); ++i) {
- delete clients[i];
+ for (auto& client : clients) {
+ delete client;
}
return 0;