From 8a61347be92c74a85662e3eae14be55fc5aa97d7 Mon Sep 17 00:00:00 2001
From: Tobias Hunger <tobias.hunger@nokia.com>
Date: Thu, 24 Jun 2010 16:14:29 +0200
Subject: [PATCH] Add operator= to Task

Reviewed-by: dt
---
 src/plugins/projectexplorer/task.cpp | 11 +++++++++++
 src/plugins/projectexplorer/task.h   |  2 ++
 2 files changed, 13 insertions(+)

diff --git a/src/plugins/projectexplorer/task.cpp b/src/plugins/projectexplorer/task.cpp
index e8870ea52ef..4dc799df499 100644
--- a/src/plugins/projectexplorer/task.cpp
+++ b/src/plugins/projectexplorer/task.cpp
@@ -32,6 +32,17 @@
 namespace ProjectExplorer
 {
 
+Task &Task::operator=(const Task &source)
+{
+    type = source.type;
+    description = source.description;
+    file = source.file;
+    line = source.line;
+    category = source.category;
+    formats = source.formats;
+    return *this;
+}
+
 //
 // functions
 //
diff --git a/src/plugins/projectexplorer/task.h b/src/plugins/projectexplorer/task.h
index c86811647c2..e08d7213c15 100644
--- a/src/plugins/projectexplorer/task.h
+++ b/src/plugins/projectexplorer/task.h
@@ -61,6 +61,8 @@ public:
     ~Task()
     { }
 
+    Task &operator=(const Task &source);
+
     TaskType type;
     QString description;
     QString file;
-- 
GitLab