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
eb10d086
Commit
eb10d086
authored
Oct 17, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CueParser: use std::string
parent
abb0549e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
CueParser.cxx
src/cue/CueParser.cxx
+2
-5
CueParser.hxx
src/cue/CueParser.hxx
+3
-1
No files found.
src/cue/CueParser.cxx
View file @
eb10d086
...
...
@@ -31,7 +31,6 @@
CueParser
::
CueParser
()
:
state
(
HEADER
),
tag
(
new
Tag
()),
filename
(
nullptr
),
current
(
nullptr
),
previous
(
nullptr
),
finished
(
nullptr
),
...
...
@@ -40,7 +39,6 @@ CueParser::CueParser()
CueParser
::~
CueParser
()
{
delete
tag
;
g_free
(
filename
);
if
(
current
!=
nullptr
)
current
->
Free
();
...
...
@@ -230,8 +228,7 @@ CueParser::Feed2(char *p)
}
state
=
WAVE
;
g_free
(
filename
);
filename
=
g_strdup
(
new_filename
);
filename
=
new_filename
;
}
else
if
(
state
==
IGNORE_FILE
)
{
return
;
}
else
if
(
strcmp
(
command
,
"TRACK"
)
==
0
)
{
...
...
@@ -251,7 +248,7 @@ CueParser::Feed2(char *p)
}
state
=
TRACK
;
current
=
Song
::
NewRemote
(
filename
);
current
=
Song
::
NewRemote
(
filename
.
c_str
()
);
assert
(
current
->
tag
==
nullptr
);
current
->
tag
=
new
Tag
(
*
tag
);
current
->
tag
->
AddItem
(
TAG_TRACK
,
nr
);
...
...
src/cue/CueParser.hxx
View file @
eb10d086
...
...
@@ -23,6 +23,8 @@
#include "check.h"
#include "Compiler.h"
#include <string>
struct
Song
;
struct
Tag
;
...
...
@@ -56,7 +58,7 @@ class CueParser {
Tag
*
tag
;
char
*
filename
;
std
::
string
filename
;
/**
* The song currently being edited.
...
...
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