summaryrefslogtreecommitdiff
path: root/louloulibs/utils/timed_events.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-05-22 12:52:05 +0200
committerlouiz’ <louiz@louiz.org>2016-06-08 01:42:43 +0200
commit66609cfba2b581be52de6096193751d1bb4ec3c3 (patch)
treeb126a3b7c7f9c1441c7b7ded8d99b9bb390b2590 /louloulibs/utils/timed_events.cpp
parent711861d40e365564e3828a251066c16e924d30f3 (diff)
downloadbiboumi-66609cfba2b581be52de6096193751d1bb4ec3c3.tar.gz
biboumi-66609cfba2b581be52de6096193751d1bb4ec3c3.tar.bz2
biboumi-66609cfba2b581be52de6096193751d1bb4ec3c3.tar.xz
biboumi-66609cfba2b581be52de6096193751d1bb4ec3c3.zip
Remove all usage of std::list
Diffstat (limited to 'louloulibs/utils/timed_events.cpp')
-rw-r--r--louloulibs/utils/timed_events.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/louloulibs/utils/timed_events.cpp b/louloulibs/utils/timed_events.cpp
index 930380b..6b936c4 100644
--- a/louloulibs/utils/timed_events.cpp
+++ b/louloulibs/utils/timed_events.cpp
@@ -20,15 +20,6 @@ TimedEvent::TimedEvent(std::chrono::milliseconds&& duration,
{
}
-TimedEvent::TimedEvent(TimedEvent&& other):
- time_point(std::move(other.time_point)),
- callback(std::move(other.callback)),
- repeat(other.repeat),
- repeat_delay(std::move(other.repeat_delay)),
- name(std::move(other.name))
-{
-}
-
bool TimedEvent::is_after(const TimedEvent& other) const
{
return this->is_after(other.time_point);
@@ -47,7 +38,7 @@ std::chrono::milliseconds TimedEvent::get_timeout() const
return std::chrono::duration_cast<std::chrono::milliseconds>(this->time_point - now);
}
-void TimedEvent::execute()
+void TimedEvent::execute() const
{
this->callback();
}