mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-06 19:40:10 +02:00
Add noexcept qualifications in src/common
Apparently this can actually make a difference in some cases, and the C++ Core Guideliens recommend doing this on all default constructors, destructors, and all functions that can not throw (and thus also don't allocate).
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
|
||||
YaBStream::YaBStream(){FUNKNOWN_CTOR}
|
||||
YaBStream::YaBStream() noexcept {FUNKNOWN_CTOR}
|
||||
|
||||
YaBStream::YaBStream(Steinberg::IBStream* stream) {
|
||||
FUNKNOWN_CTOR
|
||||
@@ -80,7 +80,7 @@ YaBStream::YaBStream(Steinberg::IBStream* stream) {
|
||||
}
|
||||
}
|
||||
|
||||
YaBStream::~YaBStream() {
|
||||
YaBStream::~YaBStream() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ tresult YaBStream::write_back(Steinberg::IBStream* stream) const {
|
||||
return Steinberg::kResultOk;
|
||||
}
|
||||
|
||||
size_t YaBStream::size() const {
|
||||
size_t YaBStream::size() const noexcept {
|
||||
return buffer.size();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user