Commit fa82f558 authored by Max Kellermann's avatar Max Kellermann

util/PeakBuffer: add `noexcept`

parent 6b555b70
......@@ -25,7 +25,7 @@
#include <string.h>
PeakBuffer::~PeakBuffer()
PeakBuffer::~PeakBuffer() noexcept
{
delete normal_buffer;
delete peak_buffer;
......
......@@ -39,11 +39,11 @@ class PeakBuffer {
DynamicFifoBuffer<uint8_t> *normal_buffer, *peak_buffer;
public:
PeakBuffer(std::size_t _normal_size, std::size_t _peak_size)
PeakBuffer(std::size_t _normal_size, std::size_t _peak_size) noexcept
:normal_size(_normal_size), peak_size(_peak_size),
normal_buffer(nullptr), peak_buffer(nullptr) {}
PeakBuffer(PeakBuffer &&other)
PeakBuffer(PeakBuffer &&other) noexcept
:normal_size(other.normal_size), peak_size(other.peak_size),
normal_buffer(other.normal_buffer),
peak_buffer(other.peak_buffer) {
......@@ -51,7 +51,7 @@ public:
other.peak_buffer = nullptr;
}
~PeakBuffer();
~PeakBuffer() noexcept;
PeakBuffer(const PeakBuffer &) = delete;
PeakBuffer &operator=(const PeakBuffer &) = delete;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment