From 2643c3fc143f2b462bb01e9594199107231d43eb Mon Sep 17 00:00:00 2001 From: Joachim Wuttke <j.wuttke@fz-juelich.de> Date: Thu, 8 Feb 2024 22:16:22 +0100 Subject: [PATCH] simpler default arg --- GUI/View/Instrument/InstrumentsQListModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GUI/View/Instrument/InstrumentsQListModel.cpp b/GUI/View/Instrument/InstrumentsQListModel.cpp index aa2818bc57e..4f1af431b47 100644 --- a/GUI/View/Instrument/InstrumentsQListModel.cpp +++ b/GUI/View/Instrument/InstrumentsQListModel.cpp @@ -126,7 +126,7 @@ QModelIndex InstrumentsQListModel::copyInstrument(const InstrumentItem* source) const QString copyName = instruments->suggestInstrumentName(source->instrumentName()); const int row = instruments->instrumentItems().size(); - beginInsertRows(QModelIndex(), row, row); + beginInsertRows({}, row, row); InstrumentItem* copy = instruments->insertItemCopy(*source); copy->setInstrumentName(copyName); emit instruments->instrumentAddedOrRemoved(); @@ -141,7 +141,7 @@ template <class Instrument> QModelIndex InstrumentsQListModel::addNewInstrument( const QString name = instruments->suggestInstrumentName(defaultInstrumentName<Instrument>()); const int row = instruments->instrumentItems().size(); - beginInsertRows(QModelIndex(), row, row); + beginInsertRows({}, row, row); auto* instrument = instruments->addInstrumentItem<Instrument>(); instruments->setInstrumentName(instrument, name); endInsertRows(); -- GitLab