Commit 39a1f03d authored by Max Kellermann's avatar Max Kellermann

db/PlaylistVector: add "noexcept"

parent c6a4a4ed
......@@ -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());
......
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment