From: Christoph Egger <Christoph.Egger@fau.de>
Date: Thu, 5 Mar 2015 13:30:29 +0000 (+0100)
Subject: directly set function name
X-Git-Tag: v0.1~71
X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=67fac0f473ce6fe7c3d8e5d44d47e22c84eeacba;p=frida%2Ffrida.git

directly set function name

No need to first finish the function with an empty name and rename it
directly afterwards. (related to T1)
---

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;
 }