summaryrefslogtreecommitdiff
path: root/src/sticker
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-24 15:00:24 +0200
committerMax Kellermann <max@musicpd.org>2019-04-24 15:00:24 +0200
commit92dc4a0ca76ff2359a3d9b35b8c27812e8147ba8 (patch)
tree14575fe0c4ffe57f8768f99f9694f68f11627275 /src/sticker
parentc7c303eec3d53e65ee599f1863f66cb0e1deba91 (diff)
sticker/Database: add `noexcept`
Diffstat (limited to 'src/sticker')
-rw-r--r--src/sticker/StickerDatabase.cxx6
-rw-r--r--src/sticker/StickerDatabase.hxx6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/sticker/StickerDatabase.cxx b/src/sticker/StickerDatabase.cxx
index 99aa32dda..73011e7ba 100644
--- a/src/sticker/StickerDatabase.cxx
+++ b/src/sticker/StickerDatabase.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright 2003-2018 The Music Player Daemon Project
+ * Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -134,7 +134,7 @@ sticker_global_init(Path path)
}
void
-sticker_global_finish()
+sticker_global_finish() noexcept
{
if (sticker_db == nullptr)
/* not configured */
@@ -321,7 +321,7 @@ sticker_delete_value(const char *type, const char *uri, const char *name)
}
void
-sticker_free(Sticker *sticker)
+sticker_free(Sticker *sticker) noexcept
{
delete sticker;
}
diff --git a/src/sticker/StickerDatabase.hxx b/src/sticker/StickerDatabase.hxx
index 807c825fb..c05ce3558 100644
--- a/src/sticker/StickerDatabase.hxx
+++ b/src/sticker/StickerDatabase.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright 2003-2018 The Music Player Daemon Project
+ * Copyright 2003-2019 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -62,7 +62,7 @@ sticker_global_init(Path path);
* Close the sticker database.
*/
void
-sticker_global_finish();
+sticker_global_finish() noexcept;
/**
* 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);
* @param sticker the sticker object to be freed
*/
void
-sticker_free(Sticker *sticker);
+sticker_free(Sticker *sticker) noexcept;
/**
* Determines a single value in a sticker.