From cc52cc715189017b7badbb3474476abb02a49783 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Tue, 23 Jun 2020 20:26:02 +0200
Subject: [PATCH] don't copy constant

---
 GUI/coregui/Models/SessionItem.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/GUI/coregui/Models/SessionItem.cpp b/GUI/coregui/Models/SessionItem.cpp
index be09fffca36..d1e9f7b1249 100644
--- a/GUI/coregui/Models/SessionItem.cpp
+++ b/GUI/coregui/Models/SessionItem.cpp
@@ -289,10 +289,9 @@ SessionItem* SessionItem::addProperty(const QString& name, const QVariant& varia
         throw GUIHelpers::Error(
             "ParameterizedItem::registerProperty() -> Error. Already existing property " + name);
 
-    const QString property_type = Constants::PropertyType;
-    SessionItem* property = ItemFactory::CreateItem(property_type);
+    SessionItem* property = ItemFactory::CreateItem(Constants::PropertyType);
     property->setDisplayName(name);
-    registerTag(name, 1, 1, QStringList() << property_type);
+    registerTag(name, 1, 1, QStringList() << Constants::PropertyType);
     if (!insertItem(0, property, name))
         throw GUIHelpers::Error("SessionItem::addProperty -> Error. Can't insert item");
 
-- 
GitLab