summaryrefslogtreecommitdiff
path: root/src/lib/event_history.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/event_history.h')
-rw-r--r--src/lib/event_history.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/event_history.h b/src/lib/event_history.h
index e194f6333..4670e7bfe 100644
--- a/src/lib/event_history.h
+++ b/src/lib/event_history.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2017 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2017-2019 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -22,6 +22,7 @@
#define DCPOMATIC_EVENT_HISTORY_H
#include <boost/thread/mutex.hpp>
+#include <boost/optional.hpp>
#include <list>
class EventHistory
@@ -29,7 +30,7 @@ class EventHistory
public:
explicit EventHistory (int size);
- float rate () const;
+ boost::optional<float> rate () const;
void event ();
private: