Commit fdb136f1 authored by Max Kellermann's avatar Max Kellermann

StateFile: use C++11 initializers

parent 9e330747
...@@ -42,9 +42,7 @@ StateFile::StateFile(AllocatedPath &&_path, unsigned _interval, ...@@ -42,9 +42,7 @@ StateFile::StateFile(AllocatedPath &&_path, unsigned _interval,
:TimeoutMonitor(_loop), :TimeoutMonitor(_loop),
path(std::move(_path)), path_utf8(path.ToUTF8()), path(std::move(_path)), path_utf8(path.ToUTF8()),
interval(_interval), interval(_interval),
partition(_partition), partition(_partition)
prev_volume_version(0), prev_output_version(0),
prev_playlist_version(0)
{ {
} }
......
...@@ -42,8 +42,8 @@ class StateFile final : private TimeoutMonitor { ...@@ -42,8 +42,8 @@ class StateFile final : private TimeoutMonitor {
* These version numbers determine whether we need to save the state * These version numbers determine whether we need to save the state
* file. If nothing has changed, we won't let the hard drive spin up. * file. If nothing has changed, we won't let the hard drive spin up.
*/ */
unsigned prev_volume_version, prev_output_version, unsigned prev_volume_version = 0, prev_output_version = 0,
prev_playlist_version; prev_playlist_version = 0;
public: public:
static constexpr unsigned DEFAULT_INTERVAL = 2 * 60; static constexpr unsigned DEFAULT_INTERVAL = 2 * 60;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment