fix -Wmisleading-indentation warning

there were spaces used to indent the conditional line
This commit is contained in:
Simon De Backer
2020-05-28 22:35:12 +02:00
committed by Laurent Trinques
parent e56701d336
commit addcdeb2a0

View File

@@ -43,8 +43,8 @@ NomenclatureModel::NomenclatureModel(QETProject *project, QObject *parent) :
*/ */
int NomenclatureModel::rowCount(const QModelIndex &parent) const int NomenclatureModel::rowCount(const QModelIndex &parent) const
{ {
if (parent.isValid()) if (parent.isValid())
return 0; return 0;
return m_record.count(); return m_record.count();
} }
@@ -57,8 +57,8 @@ int NomenclatureModel::rowCount(const QModelIndex &parent) const
*/ */
int NomenclatureModel::columnCount(const QModelIndex &parent) const int NomenclatureModel::columnCount(const QModelIndex &parent) const
{ {
if (parent.isValid()) if (parent.isValid())
return 0; return 0;
if (m_record.count()) { if (m_record.count()) {
return m_record.first().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 QVariant NomenclatureModel::data(const QModelIndex &index, int role) const
{ {
if (!index.isValid()) if (!index.isValid())
return QVariant(); return QVariant();
if (index.row() == 0 && if (index.row() == 0 &&
index.column() == 0 && index.column() == 0 &&