playlist/flac: add noexcept
This commit is contained in:
parent
545af857ba
commit
a8f314190f
@ -45,13 +45,13 @@ class FlacPlaylist final : public SongEnumerator {
|
|||||||
public:
|
public:
|
||||||
FlacPlaylist(const char *_uri,
|
FlacPlaylist(const char *_uri,
|
||||||
FLAC__StreamMetadata *_cuesheet,
|
FLAC__StreamMetadata *_cuesheet,
|
||||||
const FLAC__StreamMetadata &streaminfo)
|
const FLAC__StreamMetadata &streaminfo) noexcept
|
||||||
:uri(_uri), cuesheet(_cuesheet),
|
:uri(_uri), cuesheet(_cuesheet),
|
||||||
sample_rate(streaminfo.data.stream_info.sample_rate),
|
sample_rate(streaminfo.data.stream_info.sample_rate),
|
||||||
total_samples(streaminfo.data.stream_info.total_samples) {
|
total_samples(streaminfo.data.stream_info.total_samples) {
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual ~FlacPlaylist() {
|
~FlacPlaylist() noexcept override {
|
||||||
FLAC__metadata_object_delete(cuesheet);
|
FLAC__metadata_object_delete(cuesheet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user