From e34672c9d8495a403ef65c11e1078247b28de02e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 14 Aug 2019 20:14:26 +0200 Subject: [PATCH] lib/xiph/FlacMetadataIterator: add `noexcept` --- src/lib/xiph/FlacMetadataIterator.hxx | 7 ++++--- 1 file 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); }