]> git.siccegge.de Git - frida/frida.git/commitdiff
directly set function name
authorChristoph Egger <Christoph.Egger@fau.de>
Thu, 5 Mar 2015 13:30:29 +0000 (14:30 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Thu, 5 Mar 2015 13:30:29 +0000 (14:30 +0100)
No need to first finish the function with an empty name and rename it
directly afterwards. (related to T1)

src/core/Function.cxx

index 781940ce71ddef42c7243ed63096f5d3155da590..c4dc9854d9853a48816a0c4cb20bb284afb6eca5 100644 (file)
@@ -49,7 +49,8 @@ Function* Function::deserialize(QXmlStreamReader& stream, InformationManager* ma
                }
        }
 
+       fun->name = name.toStdString();
        manager->finishFunction(fun);
-       fun->setName(name.toStdString());
+
        return fun;
 }