db/DatabaseSong: add noexcept

This commit is contained in:
Max Kellermann 2019-09-01 14:56:27 +02:00
parent 7f043367ed
commit 2376527d1f
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
#include <assert.h> #include <assert.h>
DetachedSong DetachedSong
DatabaseDetachSong(const Storage *storage, const LightSong &song) DatabaseDetachSong(const Storage *storage, const LightSong &song) noexcept
{ {
DetachedSong detached(song); DetachedSong detached(song);
assert(detached.IsInDatabase()); assert(detached.IsInDatabase());

View File

@ -30,7 +30,7 @@ class DetachedSong;
* instance. * instance.
*/ */
DetachedSong DetachedSong
DatabaseDetachSong(const Storage *storage, const LightSong &song); DatabaseDetachSong(const Storage *storage, const LightSong &song) noexcept;
/** /**
* Look up a song in the database and convert it to a #DetachedSong * Look up a song in the database and convert it to a #DetachedSong