From a8f314190f3c3d6a64de2ea2a5fe1ed7e5725195 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 14 Aug 2019 20:08:55 +0200 Subject: [PATCH] playlist/flac: add `noexcept` --- src/playlist/plugins/FlacPlaylistPlugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playlist/plugins/FlacPlaylistPlugin.cxx b/src/playlist/plugins/FlacPlaylistPlugin.cxx index 8333251cc..41046f940 100644 --- a/src/playlist/plugins/FlacPlaylistPlugin.cxx +++ b/src/playlist/plugins/FlacPlaylistPlugin.cxx @@ -45,13 +45,13 @@ class FlacPlaylist final : public SongEnumerator { public: FlacPlaylist(const char *_uri, FLAC__StreamMetadata *_cuesheet, - const FLAC__StreamMetadata &streaminfo) + const FLAC__StreamMetadata &streaminfo) noexcept :uri(_uri), cuesheet(_cuesheet), sample_rate(streaminfo.data.stream_info.sample_rate), total_samples(streaminfo.data.stream_info.total_samples) { } - virtual ~FlacPlaylist() { + ~FlacPlaylist() noexcept override { FLAC__metadata_object_delete(cuesheet); }