From d8ced1dbb1e2fa78cbd17c78c468a65b6338581d Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Mon, 7 Mar 2011 23:43:59 +0200 Subject: [PATCH] GUI: Initialize Severity in ErrorItem constructor. --- gui/erroritem.cpp | 5 +++++ gui/erroritem.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gui/erroritem.cpp b/gui/erroritem.cpp index 92055678d..46ab536a9 100644 --- a/gui/erroritem.cpp +++ b/gui/erroritem.cpp @@ -18,6 +18,11 @@ #include "erroritem.h" +ErrorItem::ErrorItem() + : severity(Severity::none) +{ +} + ErrorItem::ErrorItem(const ErrorItem &item) { file = item.file; diff --git a/gui/erroritem.h b/gui/erroritem.h index cc0ddc913..cb3db71f9 100644 --- a/gui/erroritem.h +++ b/gui/erroritem.h @@ -97,7 +97,7 @@ public: class ErrorItem { public: - ErrorItem() { } + ErrorItem(); ErrorItem(const ErrorItem &item); ErrorItem(const ErrorLine &line); ~ErrorItem() { }