MusicBuffer: remove noexcept
from constructor
The `SliceBuffer` constructor can throw.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2017 The Music Player Daemon Project
|
* Copyright 2003-2018 The Music Player Daemon Project
|
||||||
* http://www.musicpd.org
|
* http://www.musicpd.org
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
MusicBuffer::MusicBuffer(unsigned num_chunks) noexcept
|
MusicBuffer::MusicBuffer(unsigned num_chunks)
|
||||||
:buffer(num_chunks) {
|
:buffer(num_chunks) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2017 The Music Player Daemon Project
|
* Copyright 2003-2018 The Music Player Daemon Project
|
||||||
* http://www.musicpd.org
|
* http://www.musicpd.org
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@@ -40,7 +40,7 @@ public:
|
|||||||
* @param num_chunks the number of #MusicChunk reserved in
|
* @param num_chunks the number of #MusicChunk reserved in
|
||||||
* this buffer
|
* this buffer
|
||||||
*/
|
*/
|
||||||
explicit MusicBuffer(unsigned num_chunks) noexcept;
|
explicit MusicBuffer(unsigned num_chunks);
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user