From e135b6e7e642623a3502f3335ff5570a6e54b55b Mon Sep 17 00:00:00 2001
From: Joachim Wuttke <j.wuttke@fz-juelich.de>
Date: Sun, 18 Feb 2024 08:54:28 +0100
Subject: [PATCH] std var name

---
 GUI/View/List/InstrumentsQListView.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/GUI/View/List/InstrumentsQListView.cpp b/GUI/View/List/InstrumentsQListView.cpp
index 66ced96e8f9..8a02d5e61cc 100644
--- a/GUI/View/List/InstrumentsQListView.cpp
+++ b/GUI/View/List/InstrumentsQListView.cpp
@@ -119,17 +119,17 @@ void InstrumentsQListView::onCopy()
 void InstrumentsQListView::onStoreInLibrary() const
 {
     QModelIndex idx = selectionModel()->selectedIndexes().front();
-    InstrumentItem* ii = m_model->instrumentItemForIndex(idx);
-    if (!ii)
+    InstrumentItem* t = m_model->instrumentItemForIndex(idx);
+    if (!t)
         return;
 
     QString fname = GUI::Dialog::fileSaveDialog("Save instrument", appSettings->xml_dir,
-                                                "XML Files (*.xml)", ii->instrumentName() + ".xml");
+                                                "XML Files (*.xml)", t->instrumentName() + ".xml");
     if (fname.isEmpty())
         return;
 
     try {
-        InstrumentXML::save(fname, ii);
+        InstrumentXML::save(fname, t);
     } catch (const std::exception& ex) {
         QMessageBox(QMessageBox::Warning, "BornAgain: failed saving", QString(ex.what()),
                     QMessageBox::Ok, nullptr)
-- 
GitLab