diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2010-06-30 16:37:07 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2010-06-30 17:18:15 +0200 |
commit | fa6e6bc742627cb609b51abeb10e512ebe53abe2 (patch) | |
tree | 88540eefea8d910c2671017252cf726ac738dc36 /src/plugins/projectexplorer/task.h | |
parent | 52b33a7503866654077b572c1f8005dfc19ed5a6 (diff) |
Add a task id to the task class
* Add a id that is uniquely identifying a task.
Simplify operator == and qHash functions using this
id.
* Remove some code that was added in preparation for a patch
that got rejected.
Reviewed-by: dt
Diffstat (limited to 'src/plugins/projectexplorer/task.h')
-rw-r--r-- | src/plugins/projectexplorer/task.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/task.h b/src/plugins/projectexplorer/task.h index e91c629e2c..db6fa228e0 100644 --- a/src/plugins/projectexplorer/task.h +++ b/src/plugins/projectexplorer/task.h @@ -51,11 +51,8 @@ public: Task(); Task(TaskType type_, const QString &description_, const QString &file_, int line_, const QString &category_); - Task(const Task &source); - ~Task(); - - Task &operator=(const Task &source); + unsigned int taskId; TaskType type; QString description; QString file; @@ -70,6 +67,8 @@ public: // doesn't work if you split it up, nor are our parsers // anywhere near being that good QList<QTextLayout::FormatRange> formats; +private: + static unsigned int s_nextId; }; bool operator==(const Task &t1, const Task &t2); |