From 293c2d1bb5fee3008630ab3fe6d0ac30d21b1d95 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Thu, 19 Mar 2015 18:01:28 +0100 Subject: [PATCH] Include pointer to changed function in RenameFunctionEvent --- src/core/Function.cxx | 2 +- src/core/events/RenameFunctionEvent.hxx | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/Function.cxx b/src/core/Function.cxx index e31bce4..1560e2a 100644 --- a/src/core/Function.cxx +++ b/src/core/Function.cxx @@ -12,7 +12,7 @@ Function::Function(uint64_t start_address, bool dynamic, InformationManager* man void Function::setName(const std::string& new_name) { name = new_name; - RenameFunctionEvent event(new_name, start_address); + RenameFunctionEvent event(new_name, this, start_address); manager->dispatch(&event); } diff --git a/src/core/events/RenameFunctionEvent.hxx b/src/core/events/RenameFunctionEvent.hxx index a8c78d5..1347941 100644 --- a/src/core/events/RenameFunctionEvent.hxx +++ b/src/core/events/RenameFunctionEvent.hxx @@ -2,13 +2,17 @@ #define INCLUDE__RenameFunctionEvent_hxx_ #include +class Function; class RenameFunctionEvent { public: - RenameFunctionEvent(const std::string& name, uint64_t address) - : new_name(name), address(address) {} + RenameFunctionEvent(const std::string& name, + Function* function, + uint64_t address) + : new_name(name), function(function), address(address) {} std::string new_name; + Function* function; uint64_t address; }; -- 2.39.2