summaryrefslogtreecommitdiff
path: root/src/lib/xiph/FlacMetadataIterator.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-08-14 20:14:26 +0200
committerMax Kellermann <max@musicpd.org>2019-08-14 20:14:26 +0200
commite34672c9d8495a403ef65c11e1078247b28de02e (patch)
tree90fac5ab938dca477a6643dcf7692de567d3939f /src/lib/xiph/FlacMetadataIterator.hxx
parenta8f314190f3c3d6a64de2ea2a5fe1ed7e5725195 (diff)
lib/xiph/FlacMetadataIterator: add `noexcept`
Diffstat (limited to 'src/lib/xiph/FlacMetadataIterator.hxx')
-rw-r--r--src/lib/xiph/FlacMetadataIterator.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/xiph/FlacMetadataIterator.hxx b/src/lib/xiph/FlacMetadataIterator.hxx
index e188bae3c..8c0704e49 100644
--- a/src/lib/xiph/FlacMetadataIterator.hxx
+++ b/src/lib/xiph/FlacMetadataIterator.hxx
@@ -28,14 +28,15 @@ class FlacMetadataIterator {
FLAC__Metadata_Iterator *iterator;
public:
- FlacMetadataIterator():iterator(::FLAC__metadata_iterator_new()) {}
+ FlacMetadataIterator() noexcept
+ :iterator(::FLAC__metadata_iterator_new()) {}
- FlacMetadataIterator(FLAC__Metadata_Chain *chain)
+ explicit FlacMetadataIterator(FLAC__Metadata_Chain *chain) noexcept
:FlacMetadataIterator() {
::FLAC__metadata_iterator_init(iterator, chain);
}
- ~FlacMetadataIterator() {
+ ~FlacMetadataIterator() noexcept {
::FLAC__metadata_iterator_delete(iterator);
}