diff --git a/gui/erroritem.cpp b/gui/erroritem.cpp index 5e2d9e51d..14828147a 100644 --- a/gui/erroritem.cpp +++ b/gui/erroritem.cpp @@ -24,29 +24,16 @@ ErrorItem::ErrorItem() { } -ErrorItem::ErrorItem(const ErrorItem &item) -{ - file = item.file; - file0 = item.file0; - files = item.files; - lines = item.lines; - errorId = item.errorId; - inconclusive = item.inconclusive; - severity = item.severity; - summary = item.summary; - message = item.message; -} - ErrorItem::ErrorItem(const ErrorLine &line) + : file(line.file) + , files(line.file) + , errorId(line.errorId) + , severity(line.severity) + , inconclusive(line.inconclusive) + , summary(line.summary) + , message(line.message) { - file = line.file; - files.append(line.file); lines.append(line.line); - errorId = line.errorId; - inconclusive = line.inconclusive; - severity = line.severity; - summary = line.summary; - message = line.message; } QString ErrorItem::ToString() const diff --git a/gui/erroritem.h b/gui/erroritem.h index 705f856ae..b9127ed0e 100644 --- a/gui/erroritem.h +++ b/gui/erroritem.h @@ -93,9 +93,7 @@ public: class ErrorItem { public: ErrorItem(); - ErrorItem(const ErrorItem &item); ErrorItem(const ErrorLine &line); - ~ErrorItem() { } /** * @brief Convert error item to string.