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
f8c23488
Commit
f8c23488
authored
Oct 21, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Song: add method ReplaceTag()
parent
1e2cda92
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
Song.cxx
src/Song.cxx
+8
-0
Song.hxx
src/Song.hxx
+2
-0
No files found.
src/Song.cxx
View file @
f8c23488
...
...
@@ -109,6 +109,14 @@ Song::Free()
g_free
(
this
);
}
void
Song
::
ReplaceTag
(
Tag
&&
_tag
)
{
if
(
tag
==
nullptr
)
tag
=
new
Tag
();
*
tag
=
std
::
move
(
_tag
);
}
gcc_pure
static
inline
bool
directory_equals
(
const
Directory
&
a
,
const
Directory
&
b
)
...
...
src/Song.hxx
View file @
f8c23488
...
...
@@ -126,6 +126,8 @@ struct Song {
return
parent
==
&
detached_root
;
}
void
ReplaceTag
(
Tag
&&
tag
);
bool
UpdateFile
();
bool
UpdateFileInArchive
();
...
...
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