db/PlaylistVector: add "noexcept"
This commit is contained in:
parent
c6a4a4edf1
commit
39a1f03d5c
|
@ -36,7 +36,7 @@ PlaylistVector::find(const char *name) noexcept
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
PlaylistVector::UpdateOrInsert(PlaylistInfo &&pi)
|
PlaylistVector::UpdateOrInsert(PlaylistInfo &&pi) noexcept
|
||||||
{
|
{
|
||||||
assert(holding_db_lock());
|
assert(holding_db_lock());
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@ PlaylistVector::UpdateOrInsert(PlaylistInfo &&pi)
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
PlaylistVector::erase(const char *name)
|
PlaylistVector::erase(const char *name) noexcept
|
||||||
{
|
{
|
||||||
assert(holding_db_lock());
|
assert(holding_db_lock());
|
||||||
|
|
||||||
|
|
|
@ -45,12 +45,12 @@ public:
|
||||||
*
|
*
|
||||||
* @return true if the vector or one of its items was modified
|
* @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.
|
* Caller must lock the #db_mutex.
|
||||||
*/
|
*/
|
||||||
bool erase(const char *name);
|
bool erase(const char *name) noexcept;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* SONGVEC_H */
|
#endif /* SONGVEC_H */
|
||||||
|
|
Loading…
Reference in New Issue