playlist/flac: add noexcept

This commit is contained in:
Max Kellermann 2019-08-14 20:08:55 +02:00
parent 545af857ba
commit a8f314190f

View File

@ -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);
}