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
d8cf7d1e
Commit
d8cf7d1e
authored
May 31, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
queue/Playlist: use C++11 initializers
parent
57de2470
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
Playlist.hxx
src/queue/Playlist.hxx
+6
-8
No files found.
src/queue/Playlist.hxx
View file @
d8cf7d1e
...
...
@@ -46,7 +46,7 @@ struct playlist {
* This value is true if the player is currently playing (or
* should be playing).
*/
bool
playing
;
bool
playing
=
false
;
/**
* If true, then any error is fatal; if false, MPD will
...
...
@@ -60,7 +60,7 @@ struct playlist {
* BeginBulk(), and UpdateQueuedSong() and OnModified() will
* be postponed until CommitBulk()
*/
bool
bulk_edit
;
bool
bulk_edit
=
false
;
/**
* Has the queue been modified during bulk edit mode?
...
...
@@ -79,7 +79,7 @@ struct playlist {
* song which is played when we get the "play" command. It is
* also the song which is currently being played.
*/
int
current
;
int
current
=
-
1
;
/**
* The "next" song to be played (the order number), when the
...
...
@@ -89,15 +89,13 @@ struct playlist {
*
* This variable is only valid if #playing is true.
*/
int
queued
;
int
queued
=
-
1
;
playlist
(
unsigned
max_length
,
QueueListener
&
_listener
)
:
queue
(
max_length
),
listener
(
_listener
),
playing
(
false
),
bulk_edit
(
false
),
current
(
-
1
),
queued
(
-
1
)
{
listener
(
_listener
)
{
}
~
playlist
()
{
...
...
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