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
2b67a141
Commit
2b67a141
authored
Jan 21, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SongPrint: add "noexcept"
parent
eac8caa4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
SongPrint.cxx
src/SongPrint.cxx
+6
-6
SongPrint.hxx
src/SongPrint.hxx
+6
-4
No files found.
src/SongPrint.cxx
View file @
2b67a141
...
...
@@ -34,7 +34,7 @@
#define SONG_FILE "file: "
static
void
song_print_uri
(
Response
&
r
,
const
char
*
uri
,
bool
base
)
song_print_uri
(
Response
&
r
,
const
char
*
uri
,
bool
base
)
noexcept
{
std
::
string
allocated
;
...
...
@@ -50,7 +50,7 @@ song_print_uri(Response &r, const char *uri, bool base)
}
void
song_print_uri
(
Response
&
r
,
const
LightSong
&
song
,
bool
base
)
song_print_uri
(
Response
&
r
,
const
LightSong
&
song
,
bool
base
)
noexcept
{
if
(
!
base
&&
song
.
directory
!=
nullptr
)
r
.
Format
(
SONG_FILE
"%s/%s
\n
"
,
song
.
directory
,
song
.
uri
);
...
...
@@ -59,13 +59,13 @@ song_print_uri(Response &r, const LightSong &song, bool base)
}
void
song_print_uri
(
Response
&
r
,
const
DetachedSong
&
song
,
bool
base
)
song_print_uri
(
Response
&
r
,
const
DetachedSong
&
song
,
bool
base
)
noexcept
{
song_print_uri
(
r
,
song
.
GetURI
(),
base
);
}
static
void
PrintRange
(
Response
&
r
,
SongTime
start_time
,
SongTime
end_time
)
PrintRange
(
Response
&
r
,
SongTime
start_time
,
SongTime
end_time
)
noexcept
{
const
unsigned
start_ms
=
start_time
.
ToMS
();
const
unsigned
end_ms
=
end_time
.
ToMS
();
...
...
@@ -83,7 +83,7 @@ PrintRange(Response &r, SongTime start_time, SongTime end_time)
}
void
song_print_info
(
Response
&
r
,
const
LightSong
&
song
,
bool
base
)
song_print_info
(
Response
&
r
,
const
LightSong
&
song
,
bool
base
)
noexcept
{
song_print_uri
(
r
,
song
,
base
);
...
...
@@ -96,7 +96,7 @@ song_print_info(Response &r, const LightSong &song, bool base)
}
void
song_print_info
(
Response
&
r
,
const
DetachedSong
&
song
,
bool
base
)
song_print_info
(
Response
&
r
,
const
DetachedSong
&
song
,
bool
base
)
noexcept
{
song_print_uri
(
r
,
song
,
base
);
...
...
src/SongPrint.hxx
View file @
2b67a141
...
...
@@ -25,15 +25,17 @@ class DetachedSong;
class
Response
;
void
song_print_info
(
Response
&
r
,
const
DetachedSong
&
song
,
bool
base
=
false
);
song_print_info
(
Response
&
r
,
const
DetachedSong
&
song
,
bool
base
=
false
)
noexcept
;
void
song_print_info
(
Response
&
r
,
const
LightSong
&
song
,
bool
base
=
false
);
song_print_info
(
Response
&
r
,
const
LightSong
&
song
,
bool
base
=
false
)
noexcept
;
void
song_print_uri
(
Response
&
r
,
const
LightSong
&
song
,
bool
base
=
false
);
song_print_uri
(
Response
&
r
,
const
LightSong
&
song
,
bool
base
=
false
)
noexcept
;
void
song_print_uri
(
Response
&
r
,
const
DetachedSong
&
song
,
bool
base
=
false
);
song_print_uri
(
Response
&
r
,
const
DetachedSong
&
song
,
bool
base
=
false
)
noexcept
;
#endif
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