Gui: modernize C++: return braced init list

This commit is contained in:
wmayer
2023-08-17 15:12:18 +02:00
committed by wwmayer
parent b2672abc06
commit fa8978ce99
58 changed files with 286 additions and 276 deletions

View File

@@ -64,14 +64,14 @@ QVariant SceneModel::headerData (int section, Qt::Orientation orientation, int r
{
if (orientation == Qt::Horizontal) {
if (role != Qt::DisplayRole)
return QVariant();
return {};
if (section == 0)
return tr("Inventor Tree");
else if (section == 1)
return tr("Name");
}
return QVariant();
return {};
}
bool SceneModel::setHeaderData (int, Qt::Orientation, const QVariant &, int)