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
ac9a9326
Commit
ac9a9326
authored
Feb 07, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist/cue/CueParser: use C++11 initializers
parent
4b79f004
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
CueParser.cxx
src/playlist/cue/CueParser.cxx
+0
-7
CueParser.hxx
src/playlist/cue/CueParser.hxx
+5
-6
No files found.
src/playlist/cue/CueParser.cxx
View file @
ac9a9326
...
...
@@ -29,13 +29,6 @@
#include <string.h>
#include <stdlib.h>
CueParser
::
CueParser
()
:
state
(
HEADER
),
current
(
nullptr
),
previous
(
nullptr
),
finished
(
nullptr
),
end
(
false
)
{}
CueParser
::~
CueParser
()
{
delete
current
;
...
...
src/playlist/cue/CueParser.hxx
View file @
ac9a9326
...
...
@@ -55,7 +55,7 @@ class CueParser {
* Ignore everything until the next "TRACK".
*/
IGNORE_TRACK
,
}
state
;
}
state
=
HEADER
;
/**
* Tags read from the CUE header.
...
...
@@ -74,29 +74,28 @@ class CueParser {
/**
* The song currently being edited.
*/
DetachedSong
*
current
;
DetachedSong
*
current
=
nullptr
;
/**
* The previous song. It is remembered because its end_time
* will be set to the current song's start time.
*/
DetachedSong
*
previous
;
DetachedSong
*
previous
=
nullptr
;
/**
* A song that is completely finished and can be returned to
* the caller via cue_parser_get().
*/
DetachedSong
*
finished
;
DetachedSong
*
finished
=
nullptr
;
/**
* Tracks whether cue_parser_finish() has been called. If
* true, then all remaining (partial) results will be
* delivered by cue_parser_get().
*/
bool
end
;
bool
end
=
false
;
public
:
CueParser
();
~
CueParser
();
/**
...
...
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