Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
fdb136f1
Commit
fdb136f1
authored
Dec 27, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StateFile: use C++11 initializers
parent
9e330747
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
StateFile.cxx
src/StateFile.cxx
+1
-3
StateFile.hxx
src/StateFile.hxx
+2
-2
No files found.
src/StateFile.cxx
View file @
fdb136f1
...
...
@@ -42,9 +42,7 @@ StateFile::StateFile(AllocatedPath &&_path, unsigned _interval,
:
TimeoutMonitor
(
_loop
),
path
(
std
::
move
(
_path
)),
path_utf8
(
path
.
ToUTF8
()),
interval
(
_interval
),
partition
(
_partition
),
prev_volume_version
(
0
),
prev_output_version
(
0
),
prev_playlist_version
(
0
)
partition
(
_partition
)
{
}
...
...
src/StateFile.hxx
View file @
fdb136f1
...
...
@@ -42,8 +42,8 @@ class StateFile final : private TimeoutMonitor {
* 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.
*/
unsigned
prev_volume_version
,
prev_output_version
,
prev_playlist_version
;
unsigned
prev_volume_version
=
0
,
prev_output_version
=
0
,
prev_playlist_version
=
0
;
public
:
static
constexpr
unsigned
DEFAULT_INTERVAL
=
2
*
60
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment