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
45748a2b
Commit
45748a2b
authored
Jan 21, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist/Song: add "noexcept"
parent
9b13d862
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
PlaylistSong.cxx
src/playlist/PlaylistSong.cxx
+3
-3
PlaylistSong.hxx
src/playlist/PlaylistSong.hxx
+1
-1
No files found.
src/playlist/PlaylistSong.cxx
View file @
45748a2b
...
...
@@ -29,7 +29,7 @@
#include <string.h>
static
void
merge_song_metadata
(
DetachedSong
&
add
,
const
DetachedSong
&
base
)
merge_song_metadata
(
DetachedSong
&
add
,
const
DetachedSong
&
base
)
noexcept
{
if
(
base
.
GetTag
().
IsDefined
())
{
TagBuilder
builder
(
add
.
GetTag
());
...
...
@@ -41,7 +41,7 @@ merge_song_metadata(DetachedSong &add, const DetachedSong &base)
}
static
bool
playlist_check_load_song
(
DetachedSong
&
song
,
const
SongLoader
&
loader
)
playlist_check_load_song
(
DetachedSong
&
song
,
const
SongLoader
&
loader
)
noexcept
try
{
DetachedSong
tmp
=
loader
.
LoadSong
(
song
.
GetURI
());
...
...
@@ -57,7 +57,7 @@ try {
bool
playlist_check_translate_song
(
DetachedSong
&
song
,
const
char
*
base_uri
,
const
SongLoader
&
loader
)
const
SongLoader
&
loader
)
noexcept
{
if
(
base_uri
!=
nullptr
&&
strcmp
(
base_uri
,
"."
)
==
0
)
/* PathTraitsUTF8::GetParent() returns "." when there
...
...
src/playlist/PlaylistSong.hxx
View file @
45748a2b
...
...
@@ -31,6 +31,6 @@ class DetachedSong;
*/
bool
playlist_check_translate_song
(
DetachedSong
&
song
,
const
char
*
base_uri
,
const
SongLoader
&
loader
);
const
SongLoader
&
loader
)
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