MusicBuffer: remove noexcept from constructor

The `SliceBuffer` constructor can throw.
This commit is contained in:
Max Kellermann
2018-09-21 16:41:32 +02:00
parent debdf9bb96
commit 0e2c597884
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -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
/** /**