summaryrefslogtreecommitdiff
path: root/src/Task.cc
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-03-27 06:08:12 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2012-03-27 06:08:12 +0200
commit0028694f8a4f20b634d71ac04355679a442c8cdb (patch)
tree038facabe20a989d3f3b7c916df371a169ead424 /src/Task.cc
parent6e3130bab3ded0ecc802b81b423e702f65b147c5 (diff)
More code cleanup
Diffstat (limited to 'src/Task.cc')
-rw-r--r--src/Task.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Task.cc b/src/Task.cc
index 8f30cd4..0a1b2db 100644
--- a/src/Task.cc
+++ b/src/Task.cc
@@ -81,9 +81,9 @@ void Balau::Task::coroutine() {
const char * details = e.getDetails();
if (details)
Printer::log(M_WARNING, " %s", details);
- std::vector<String> trace = e.getTrace();
- for (std::vector<String>::iterator i = trace.begin(); i != trace.end(); i++)
- Printer::log(M_DEBUG, "%s", i->to_charp());
+ auto trace = e.getTrace();
+ for (String & str : trace)
+ Printer::log(M_DEBUG, "%s", str.to_charp());
m_status = FAULTED;
}
catch (...) {