aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/module/Event.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/module/Event.h')
-rw-r--r--src/core/module/Event.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/module/Event.h b/src/core/module/Event.h
index 8703b159..7ef5049c 100644
--- a/src/core/module/Event.h
+++ b/src/core/module/Event.h
@@ -77,10 +77,10 @@ class GPGFRONTEND_CORE_EXPORT Event {
};
template <typename... Args>
-Event MakeEvent(const std::string& eventIdentifier, Args&&... args) {
+EventRefrernce MakeEvent(const EventIdentifier& event_id, Args&&... args) {
std::initializer_list<Event::ParameterInitializer> params = {
Event::ParameterInitializer{std::forward<Args>(args)}...};
- return Event(eventIdentifier, params);
+ return std::make_shared<Event>(event_id, params);
}
} // namespace GpgFrontend::Module