From 55dd3937fabf43ab2b31a0711c9b98affdfd508c Mon Sep 17 00:00:00 2001 From: Dawid Drozd Date: Sun, 15 Sep 2019 02:45:13 +0200 Subject: [PATCH] Fix api readability --- lib/src/dexode/EventBus.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/src/dexode/EventBus.hpp b/lib/src/dexode/EventBus.hpp index 64b968d..97d252f 100644 --- a/lib/src/dexode/EventBus.hpp +++ b/lib/src/dexode/EventBus.hpp @@ -29,17 +29,17 @@ public: EventBus& operator=(const EventBus&) = delete; template - constexpr void post(Event&& event) + constexpr void post(const Event& event) { static_assert(eventbus::internal::validateEvent(), "Invalid event"); - _base.template post(std::forward(event)); + _base.template post(event); } template - constexpr void postpone(Event&& event) + constexpr void postpone(Event event) { static_assert(eventbus::internal::validateEvent(), "Invalid event"); - _base.template postpone(std::forward(event)); + _base.template postpone(std::move(event)); } constexpr std::size_t processAll()