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
296ee496
Commit
296ee496
authored
Mar 18, 2016
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sticker/Song: add _delete() overload with "const char *"
parent
b1becddf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
SongSticker.cxx
src/sticker/SongSticker.cxx
+7
-2
SongSticker.hxx
src/sticker/SongSticker.hxx
+3
-0
No files found.
src/sticker/SongSticker.cxx
View file @
296ee496
...
...
@@ -45,10 +45,15 @@ sticker_song_set_value(const LightSong &song,
}
bool
sticker_song_delete
(
const
char
*
uri
,
Error
&
error
)
{
return
sticker_delete
(
"song"
,
uri
,
error
);
}
bool
sticker_song_delete
(
const
LightSong
&
song
,
Error
&
error
)
{
const
auto
uri
=
song
.
GetURI
();
return
sticker_delete
(
"song"
,
uri
.
c_str
(),
error
);
return
sticker_song_delete
(
song
.
GetURI
().
c_str
(),
error
);
}
bool
...
...
src/sticker/SongSticker.hxx
View file @
296ee496
...
...
@@ -51,6 +51,9 @@ sticker_song_set_value(const LightSong &song,
* Deletes a sticker from the database. All values are deleted.
*/
bool
sticker_song_delete
(
const
char
*
uri
,
Error
&
error
);
bool
sticker_song_delete
(
const
LightSong
&
song
,
Error
&
error
);
/**
...
...
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