diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-11-27 02:03:10 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-11-27 02:03:10 +0100 |
| commit | 69d8d1893e56a4e9808ac7fb2eb303b2de311fda (patch) | |
| tree | 2deb09bc471a8caa2d3216f80d60d7269ffd1c71 /src | |
| parent | 4e6fe84bf1adf7f396a28185a3a8046adee585ca (diff) | |
Cleanup some initialisation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_server.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/tools/dcpomatic_server.cc b/src/tools/dcpomatic_server.cc index e67aca749..664b33056 100644 --- a/src/tools/dcpomatic_server.cc +++ b/src/tools/dcpomatic_server.cc @@ -79,10 +79,6 @@ static unsigned int const log_lines = 128; class ServerLog : public Log, public Signaller { public: - ServerLog() - : _fps(0) - {} - string get() const { string a; for (auto const& i: _log) { @@ -124,8 +120,7 @@ private: append(entry->message()); _last_time = *local; - auto encoded = dynamic_pointer_cast<const EncodedLogEntry>(entry); - if (encoded) { + if (auto encoded = dynamic_pointer_cast<const EncodedLogEntry>(entry)) { _history.push_back(encoded->seconds()); if (_history.size() > 48) { _history.pop_front(); @@ -148,7 +143,7 @@ private: std::list<double> _history; mutable boost::mutex _state_mutex; - float _fps; + float _fps = 0; }; |
