From c226da5118d27eb2872b5032fcf28cbe59f75ba1 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (l)" <j.wuttke@fz-juelich.de> Date: Fri, 5 Nov 2021 11:23:15 +0100 Subject: [PATCH] code layout --- GUI/Models/Instrument/InstrumentLibrary.cpp | 2 ++ GUI/Models/Instrument/InstrumentModel.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/GUI/Models/Instrument/InstrumentLibrary.cpp b/GUI/Models/Instrument/InstrumentLibrary.cpp index 68677b2719f..d2c4455aef1 100644 --- a/GUI/Models/Instrument/InstrumentLibrary.cpp +++ b/GUI/Models/Instrument/InstrumentLibrary.cpp @@ -20,6 +20,7 @@ #include <QXmlStreamWriter> namespace { + const QString XML_ROOT_TAG = "BornAgainInstrumentLibrary"; const QString XML_VERSION_TAG = "Version"; @@ -30,6 +31,7 @@ QString instrumentLibraryFilePath() } // namespace + InstrumentLibrary::InstrumentLibrary() : m_modified(false) { QObject::connect(&m_model, &InstrumentModel::instrumentChanged, [&]() { m_modified = true; }); diff --git a/GUI/Models/Instrument/InstrumentModel.h b/GUI/Models/Instrument/InstrumentModel.h index f09d4ff3125..4dd94bff720 100644 --- a/GUI/Models/Instrument/InstrumentModel.h +++ b/GUI/Models/Instrument/InstrumentModel.h @@ -45,7 +45,6 @@ public: void removeInstrument(InstrumentItem* instrument); - QString suggestInstrumentName(const QString& currentName) const; QVector<InstrumentItem*> -- GitLab