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
4f0fe66f
Commit
4f0fe66f
authored
Feb 08, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DetachedSong: make the LightSong constructor public
Sometimes, it's useful to construct a DetachedSong from a LightSong even without having real_uri initialized.
parent
76380b2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
DetachedSong.hxx
src/DetachedSong.hxx
+7
-2
No files found.
src/DetachedSong.hxx
View file @
4f0fe66f
...
@@ -76,8 +76,6 @@ class DetachedSong {
...
@@ -76,8 +76,6 @@ class DetachedSong {
*/
*/
SongTime
end_time
=
SongTime
::
zero
();
SongTime
end_time
=
SongTime
::
zero
();
explicit
DetachedSong
(
const
LightSong
&
other
);
public
:
public
:
explicit
DetachedSong
(
const
char
*
_uri
)
explicit
DetachedSong
(
const
char
*
_uri
)
:
uri
(
_uri
)
{}
:
uri
(
_uri
)
{}
...
@@ -93,6 +91,13 @@ public:
...
@@ -93,6 +91,13 @@ public:
:
uri
(
std
::
forward
<
U
>
(
_uri
)),
:
uri
(
std
::
forward
<
U
>
(
_uri
)),
tag
(
std
::
move
(
_tag
))
{}
tag
(
std
::
move
(
_tag
))
{}
/**
* Copy data from a #LightSong instance. Usually, you should
* call DatabaseDetachSong() instead, which initializes
* #real_uri properly using Storage::MapUTF8().
*/
explicit
DetachedSong
(
const
LightSong
&
other
);
~
DetachedSong
();
~
DetachedSong
();
gcc_pure
gcc_pure
...
...
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