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
97ae5943
Commit
97ae5943
authored
Jan 18, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DetachedSong: use C++11 initializers
parent
3f321ae9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
DetachedSong.hxx
src/DetachedSong.hxx
+7
-15
No files found.
src/DetachedSong.hxx
View file @
97ae5943
...
...
@@ -63,18 +63,18 @@ class DetachedSong {
Tag
tag
;
time_t
mtime
;
time_t
mtime
=
0
;
/**
* Start of this sub-song within the file.
*/
SongTime
start_time
;
SongTime
start_time
=
SongTime
::
zero
()
;
/**
* End of this sub-song within the file.
* Unused if zero.
*/
SongTime
end_time
;
SongTime
end_time
=
SongTime
::
zero
()
;
explicit
DetachedSong
(
const
LightSong
&
other
);
...
...
@@ -82,26 +82,18 @@ public:
explicit
DetachedSong
(
const
DetachedSong
&
)
=
default
;
explicit
DetachedSong
(
const
char
*
_uri
)
:
uri
(
_uri
),
mtime
(
0
),
start_time
(
SongTime
::
zero
()),
end_time
(
SongTime
::
zero
())
{}
:
uri
(
_uri
)
{}
explicit
DetachedSong
(
const
std
::
string
&
_uri
)
:
uri
(
_uri
),
mtime
(
0
),
start_time
(
SongTime
::
zero
()),
end_time
(
SongTime
::
zero
())
{}
:
uri
(
_uri
)
{}
explicit
DetachedSong
(
std
::
string
&&
_uri
)
:
uri
(
std
::
move
(
_uri
)),
mtime
(
0
),
start_time
(
SongTime
::
zero
()),
end_time
(
SongTime
::
zero
())
{}
:
uri
(
std
::
move
(
_uri
))
{}
template
<
typename
U
>
DetachedSong
(
U
&&
_uri
,
Tag
&&
_tag
)
:
uri
(
std
::
forward
<
U
>
(
_uri
)),
tag
(
std
::
move
(
_tag
)),
mtime
(
0
),
start_time
(
SongTime
::
zero
()),
end_time
(
SongTime
::
zero
())
{}
tag
(
std
::
move
(
_tag
))
{}
DetachedSong
(
DetachedSong
&&
)
=
default
;
...
...
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