db/PlaylistVector: add "noexcept"

This commit is contained in:
Max Kellermann 2018-01-21 11:36:16 +01:00
parent c6a4a4edf1
commit 39a1f03d5c
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@ PlaylistVector::find(const char *name) noexcept
}
bool
PlaylistVector::UpdateOrInsert(PlaylistInfo &&pi)
PlaylistVector::UpdateOrInsert(PlaylistInfo &&pi) noexcept
{
assert(holding_db_lock());
@ -53,7 +53,7 @@ PlaylistVector::UpdateOrInsert(PlaylistInfo &&pi)
}
bool
PlaylistVector::erase(const char *name)
PlaylistVector::erase(const char *name) noexcept
{
assert(holding_db_lock());

View File

@ -45,12 +45,12 @@ public:
*
* @return true if the vector or one of its items was modified
*/
bool UpdateOrInsert(PlaylistInfo &&pi);
bool UpdateOrInsert(PlaylistInfo &&pi) noexcept;
/**
* Caller must lock the #db_mutex.
*/
bool erase(const char *name);
bool erase(const char *name) noexcept;
};
#endif /* SONGVEC_H */