Index: dm/DMTask.cpp |
diff --git a/dm/DMTask.cpp b/dm/DMTask.cpp |
index ba74a5f4098c0547d73bc5144062c20725e0aa92..a5c75f0f8a5d10f99fcb5de6518a375e77e73d9b 100644 |
--- a/dm/DMTask.cpp |
+++ b/dm/DMTask.cpp |
@@ -8,14 +8,15 @@ |
namespace DM { |
Task::Task(Reporter* reporter, TaskRunner* taskRunner) |
- : fReporter(reporter), fTaskRunner(taskRunner) { |
+ : fReporter(reporter), fTaskRunner(taskRunner), fDepth(0) { |
fReporter->start(); |
} |
-Task::Task(const Task& that) |
- : INHERITED(that) |
- , fReporter(that.fReporter) |
- , fTaskRunner(that.fTaskRunner) { |
+Task::Task(const Task& parent) |
+ : INHERITED(parent) |
+ , fReporter(parent.fReporter) |
+ , fTaskRunner(parent.fTaskRunner) |
+ , fDepth(parent.depth()+1) { |
fReporter->start(); |
} |