db/Selection: add `noexcept`

This commit is contained in:
Max Kellermann 2018-09-02 10:43:18 +02:00
parent 9cc960ac5e
commit 92da483ecd
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
#include "song/Filter.hxx"
DatabaseSelection::DatabaseSelection(const char *_uri, bool _recursive,
const SongFilter *_filter)
const SongFilter *_filter) noexcept
:uri(_uri), recursive(_recursive), filter(_filter)
{
/* optimization: if the caller didn't specify a base URI, pick

View File

@ -42,7 +42,7 @@ struct DatabaseSelection {
const SongFilter *filter;
DatabaseSelection(const char *_uri, bool _recursive,
const SongFilter *_filter=nullptr);
const SongFilter *_filter=nullptr) noexcept;
gcc_pure
bool IsEmpty() const noexcept;