aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/taskmodel.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2016-04-13 15:52:14 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2016-04-15 09:40:53 +0000
commit95ac4edfd4276c73f0304651fe032d511a5a7c16 (patch)
treec1ebcef6ecff1292f9fa670111c39043b0f67837 /src/plugins/projectexplorer/taskmodel.h
parent79da8a45860940f98333517c60ac388cc0b1af3a (diff)
Projectexplorer: Modernize codebase
Change-Id: I4793b58aa77bcd46af99f8b843c0f7439cdc9269 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Vikas Pachdha <vikas.pachdha@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/taskmodel.h')
-rw-r--r--src/plugins/projectexplorer/taskmodel.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/projectexplorer/taskmodel.h b/src/plugins/projectexplorer/taskmodel.h
index 113c388413..e94d218cab 100644
--- a/src/plugins/projectexplorer/taskmodel.h
+++ b/src/plugins/projectexplorer/taskmodel.h
@@ -79,8 +79,6 @@ private:
class CategoryData
{
public:
- CategoryData() : count(0), warnings(0), errors(0) { }
-
void addTask(const Task &task)
{
++count;
@@ -106,9 +104,9 @@ private:
}
QString displayName;
- int count;
- int warnings;
- int errors;
+ int count = 0;
+ int warnings = 0;
+ int errors = 0;
};
QHash<Core::Id,CategoryData> m_categories; // category id to data
@@ -127,7 +125,7 @@ class TaskFilterModel : public QAbstractItemModel
Q_OBJECT
public:
- TaskFilterModel(TaskModel *sourceModel, QObject *parent = 0);
+ TaskFilterModel(TaskModel *sourceModel, QObject *parent = nullptr);
TaskModel *taskModel() { return m_sourceModel; }