From addcdeb2a059602535cc7e265e29cf1e922a0677 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Thu, 28 May 2020 22:35:12 +0200 Subject: [PATCH] fix -Wmisleading-indentation warning there were spaces used to indent the conditional line --- .../qetgraphicsitem/ViewItem/nomenclaturemodel.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sources/qetgraphicsitem/ViewItem/nomenclaturemodel.cpp b/sources/qetgraphicsitem/ViewItem/nomenclaturemodel.cpp index 1686315b9..da3f5a745 100644 --- a/sources/qetgraphicsitem/ViewItem/nomenclaturemodel.cpp +++ b/sources/qetgraphicsitem/ViewItem/nomenclaturemodel.cpp @@ -43,8 +43,8 @@ NomenclatureModel::NomenclatureModel(QETProject *project, QObject *parent) : */ int NomenclatureModel::rowCount(const QModelIndex &parent) const { - if (parent.isValid()) - return 0; + if (parent.isValid()) + return 0; return m_record.count(); } @@ -57,8 +57,8 @@ int NomenclatureModel::rowCount(const QModelIndex &parent) const */ int NomenclatureModel::columnCount(const QModelIndex &parent) const { - if (parent.isValid()) - return 0; + if (parent.isValid()) + return 0; if (m_record.count()) { return m_record.first().count(); @@ -141,8 +141,8 @@ bool NomenclatureModel::setData(const QModelIndex &index, const QVariant &value, */ QVariant NomenclatureModel::data(const QModelIndex &index, int role) const { - if (!index.isValid()) - return QVariant(); + if (!index.isValid()) + return QVariant(); if (index.row() == 0 && index.column() == 0 &&