diff options
author | Max Kellermann <max@musicpd.org> | 2017-05-08 14:44:49 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-05-08 14:44:49 +0200 |
commit | 71f0ed8b7499011b53f90998ebfbd3250fd80948 (patch) | |
tree | e9c2f66fbef231858f46d878864199d46e6ce21c /test/test_translate_song.cxx | |
parent | ac2e4e593d407e41db49fdb9ae2da6bc1557f618 (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 'test/test_translate_song.cxx')
-rw-r--r-- | test/test_translate_song.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_translate_song.cxx b/test/test_translate_song.cxx index 698218029..3bba65afa 100644 --- a/test/test_translate_song.cxx +++ b/test/test_translate_song.cxx @@ -32,7 +32,7 @@ Log(const Domain &domain, gcc_unused LogLevel level, const char *msg) } bool -uri_supported_scheme(const char *uri) +uri_supported_scheme(const char *uri) noexcept { return strncmp(uri, "http://", 7) == 0; } @@ -130,13 +130,13 @@ DetachedSong::LoadFile(Path path) } const Database * -Client::GetDatabase() const +Client::GetDatabase() const noexcept { return reinterpret_cast<const Database *>(this); } const Storage * -Client::GetStorage() const +Client::GetStorage() const noexcept { return ::storage; } |