From 37fa35128da727d9b931816305abd13a7e278277 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Thu, 4 Jun 2020 23:11:56 +0200 Subject: [PATCH] fix warning QAbstractTableModel initialized in the copy constructor MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit warning: base class ‘class QAbstractTableModel’ should be explicitly initialized in the copy constructor [-Wextra] --- sources/qetgraphicsitem/ViewItem/nomenclaturemodel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/qetgraphicsitem/ViewItem/nomenclaturemodel.cpp b/sources/qetgraphicsitem/ViewItem/nomenclaturemodel.cpp index 7b5dd3ed1..7e81828e9 100644 --- a/sources/qetgraphicsitem/ViewItem/nomenclaturemodel.cpp +++ b/sources/qetgraphicsitem/ViewItem/nomenclaturemodel.cpp @@ -43,7 +43,9 @@ NomenclatureModel::NomenclatureModel(QETProject *project, QObject *parent) : * @brief NomenclatureModel::NomenclatureModel * @param other_model */ -NomenclatureModel::NomenclatureModel(const NomenclatureModel &other_model) +NomenclatureModel::NomenclatureModel(const NomenclatureModel &other_model) : + QAbstractTableModel(this), + m_project(project()) { this->setParent(other_model.parent()); m_project = other_model.m_project; -- 2.26.2