summaryrefslogtreecommitdiff
path: root/src/db/LightSong.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
committerMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
commit71f0ed8b7499011b53f90998ebfbd3250fd80948 (patch)
treee9c2f66fbef231858f46d878864199d46e6ce21c /src/db/LightSong.hxx
parentac2e4e593d407e41db49fdb9ae2da6bc1557f618 (diff)
*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
Diffstat (limited to 'src/db/LightSong.hxx')
-rw-r--r--src/db/LightSong.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/LightSong.hxx b/src/db/LightSong.hxx
index 737992703..599acba54 100644
--- a/src/db/LightSong.hxx
+++ b/src/db/LightSong.hxx
@@ -76,7 +76,7 @@ struct LightSong {
SongTime end_time;
gcc_pure
- std::string GetURI() const {
+ std::string GetURI() const noexcept {
if (directory == nullptr)
return std::string(uri);
@@ -87,7 +87,7 @@ struct LightSong {
}
gcc_pure
- SignedSongTime GetDuration() const;
+ SignedSongTime GetDuration() const noexcept;
};
#endif