From 2376527d1f350ecaa1859b5ddb046548f5aa2bdb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Sep 2019 14:56:27 +0200 Subject: [PATCH] db/DatabaseSong: add `noexcept` --- src/db/DatabaseSong.cxx | 2 +- src/db/DatabaseSong.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/DatabaseSong.cxx b/src/db/DatabaseSong.cxx index 7ef42c53b..6eee88a2b 100644 --- a/src/db/DatabaseSong.cxx +++ b/src/db/DatabaseSong.cxx @@ -27,7 +27,7 @@ #include DetachedSong -DatabaseDetachSong(const Storage *storage, const LightSong &song) +DatabaseDetachSong(const Storage *storage, const LightSong &song) noexcept { DetachedSong detached(song); assert(detached.IsInDatabase()); diff --git a/src/db/DatabaseSong.hxx b/src/db/DatabaseSong.hxx index a4d41ca9d..13099de99 100644 --- a/src/db/DatabaseSong.hxx +++ b/src/db/DatabaseSong.hxx @@ -30,7 +30,7 @@ class DetachedSong; * instance. */ 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