mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-14 00:02: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:
@@ -16,12 +16,14 @@
|
||||
|
||||
#include "param-value-queue.h"
|
||||
|
||||
YaParamValueQueue::YaParamValueQueue() {
|
||||
FUNKNOWN_CTOR
|
||||
YaParamValueQueue::YaParamValueQueue() noexcept {FUNKNOWN_CTOR}
|
||||
|
||||
YaParamValueQueue::~YaParamValueQueue() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
void YaParamValueQueue::clear_for_parameter(
|
||||
Steinberg::Vst::ParamID parameter_id) {
|
||||
Steinberg::Vst::ParamID parameter_id) noexcept {
|
||||
this->parameter_id = parameter_id;
|
||||
queue.clear();
|
||||
}
|
||||
@@ -39,10 +41,6 @@ void YaParamValueQueue::repopulate(
|
||||
}
|
||||
}
|
||||
|
||||
YaParamValueQueue::~YaParamValueQueue() {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdelete-non-virtual-dtor"
|
||||
IMPLEMENT_FUNKNOWN_METHODS(YaParamValueQueue,
|
||||
|
||||
Reference in New Issue
Block a user