mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-16 08:23:55 +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:
@@ -36,20 +36,20 @@ class YaParamValueQueue : public Steinberg::Vst::IParamValueQueue {
|
||||
* existing object with new data every processing cycle to avoid
|
||||
* reallocating a new object every time.
|
||||
*/
|
||||
YaParamValueQueue();
|
||||
YaParamValueQueue() noexcept;
|
||||
|
||||
/**
|
||||
* Clear this queue in place so that it can be used to write parameter data
|
||||
* to. Used in `YaParameterChanges::addParameterData`.
|
||||
*/
|
||||
void clear_for_parameter(Steinberg::Vst::ParamID parameter_id);
|
||||
void clear_for_parameter(Steinberg::Vst::ParamID parameter_id) noexcept;
|
||||
|
||||
/**
|
||||
* Read data from an `IParamValueQueue` object into this existing object.
|
||||
*/
|
||||
void repopulate(Steinberg::Vst::IParamValueQueue& original_queue);
|
||||
|
||||
~YaParamValueQueue();
|
||||
~YaParamValueQueue() noexcept;
|
||||
|
||||
DECLARE_FUNKNOWN_METHODS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user