Commit 92dc4a0c authored by Max Kellermann's avatar Max Kellermann

sticker/Database: add `noexcept`

parent c7c303ee
/* /*
* Copyright 2003-2018 The Music Player Daemon Project * Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -134,7 +134,7 @@ sticker_global_init(Path path) ...@@ -134,7 +134,7 @@ sticker_global_init(Path path)
} }
void void
sticker_global_finish() sticker_global_finish() noexcept
{ {
if (sticker_db == nullptr) if (sticker_db == nullptr)
/* not configured */ /* not configured */
...@@ -321,7 +321,7 @@ sticker_delete_value(const char *type, const char *uri, const char *name) ...@@ -321,7 +321,7 @@ sticker_delete_value(const char *type, const char *uri, const char *name)
} }
void void
sticker_free(Sticker *sticker) sticker_free(Sticker *sticker) noexcept
{ {
delete sticker; delete sticker;
} }
......
/* /*
* Copyright 2003-2018 The Music Player Daemon Project * Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org * http://www.musicpd.org
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
...@@ -62,7 +62,7 @@ sticker_global_init(Path path); ...@@ -62,7 +62,7 @@ sticker_global_init(Path path);
* Close the sticker database. * Close the sticker database.
*/ */
void void
sticker_global_finish(); sticker_global_finish() noexcept;
/** /**
* Returns true if the sticker database is configured and available. * Returns true if the sticker database is configured and available.
...@@ -114,7 +114,7 @@ sticker_delete_value(const char *type, const char *uri, const char *name); ...@@ -114,7 +114,7 @@ sticker_delete_value(const char *type, const char *uri, const char *name);
* @param sticker the sticker object to be freed * @param sticker the sticker object to be freed
*/ */
void void
sticker_free(Sticker *sticker); sticker_free(Sticker *sticker) noexcept;
/** /**
* Determines a single value in a sticker. * Determines a single value in a sticker.
......
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