diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/timed_events.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/timed_events.cpp b/src/utils/timed_events.cpp index e35a659..26ded82 100644 --- a/src/utils/timed_events.cpp +++ b/src/utils/timed_events.cpp @@ -3,7 +3,7 @@ TimedEvent::TimedEvent(std::chrono::steady_clock::time_point&& time_point, std::function<void()> callback, std::string name): - time_point(std::move(time_point)), + time_point(time_point), callback(std::move(callback)), repeat(false), repeat_delay(0), @@ -16,7 +16,7 @@ TimedEvent::TimedEvent(std::chrono::milliseconds&& duration, time_point(std::chrono::steady_clock::now() + duration), callback(std::move(callback)), repeat(true), - repeat_delay(std::move(duration)), + repeat_delay(duration), name(std::move(name)) { } |