From 67fac0f473ce6fe7c3d8e5d44d47e22c84eeacba Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Thu, 5 Mar 2015 14:30:29 +0100 Subject: [PATCH] directly set function name No need to first finish the function with an empty name and rename it directly afterwards. (related to T1) --- src/core/Function.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/Function.cxx b/src/core/Function.cxx index 781940c..c4dc985 100644 --- a/src/core/Function.cxx +++ b/src/core/Function.cxx @@ -49,7 +49,8 @@ Function* Function::deserialize(QXmlStreamReader& stream, InformationManager* ma } } + fun->name = name.toStdString(); manager->finishFunction(fun); - fun->setName(name.toStdString()); + return fun; } -- 2.39.2