]> git.siccegge.de Git - frida/frida.git/blobdiff - src/core/InformationManager.cxx
Pass NewFunctionEvents as objects, not pointers
[frida/frida.git] / src / core / InformationManager.cxx
index 4a48bae3c7070b12f0dbcd7551d28f9e88081fd0..500f79f1406f661c2a4ac53747fa053898ff0db6 100644 (file)
@@ -4,7 +4,6 @@
 #include "core/Function.hxx"
 #include "core/BasicBlock.hxx"
 #include "core/Comment.hxx"
-#include "core/events/NewFunctionEvent.hxx"
 #include "core/events/ChangeCommentEvent.hxx"
 
 #include "qt.hxx"
@@ -272,7 +271,7 @@ void InformationManager::finishFunction(Function* fun) {
                blocks.insert(std::make_pair(bl->getStartAddress(), bl));
        }
        NewFunctionEvent event(fun->getStartAddress(), fun);
-       emit newFunctionEvent(&event);
+       emit newFunctionEvent(event);
 }
 
 void InformationManager::finishBasicBlock(BasicBlock*) {