From 1fbfd196bb8de0b56aeabf9b18a6b0f34e832e5a Mon Sep 17 00:00:00 2001 From: Tobias Hunger <tobias.hunger@nokia.com> Date: Thu, 24 Jun 2010 16:17:11 +0200 Subject: [PATCH] Move implementation of Task methods into the cpp file Reviewed-by: dt --- src/plugins/projectexplorer/task.cpp | 16 ++++++++++++++++ src/plugins/projectexplorer/task.h | 15 ++++----------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/src/plugins/projectexplorer/task.cpp b/src/plugins/projectexplorer/task.cpp index 4dc799df499..31054b339b7 100644 --- a/src/plugins/projectexplorer/task.cpp +++ b/src/plugins/projectexplorer/task.cpp @@ -32,6 +32,22 @@ namespace ProjectExplorer { +Task::Task() : type(Unknown), line(-1) +{ } + +Task::Task(TaskType type_, const QString &description_, + const QString &file_, int line_, const QString &category_) : + type(type_), description(description_), file(file_), line(line_), category(category_) +{ } + +Task::Task(const Task &source) : + type(source.type), description(source.description), file(source.file), + line(source.line), category(source.category), formats(source.formats) +{ } + +Task::~Task() +{ } + Task &Task::operator=(const Task &source) { type = source.type; diff --git a/src/plugins/projectexplorer/task.h b/src/plugins/projectexplorer/task.h index e08d7213c15..e91c629e2c9 100644 --- a/src/plugins/projectexplorer/task.h +++ b/src/plugins/projectexplorer/task.h @@ -48,18 +48,11 @@ public: Warning }; - Task() : type(Unknown), line(-1) - { } + Task(); Task(TaskType type_, const QString &description_, - const QString &file_, int line_, const QString &category_) : - type(type_), description(description_), file(file_), line(line_), category(category_) - { } - Task(const Task &source) : - type(source.type), description(source.description), file(source.file), - line(source.line), category(source.category), formats(source.formats) - { } - ~Task() - { } + const QString &file_, int line_, const QString &category_); + Task(const Task &source); + ~Task(); Task &operator=(const Task &source); -- GitLab