mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +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:
@@ -35,22 +35,22 @@ class YaParameterChanges : public Steinberg::Vst::IParameterChanges {
|
||||
* existing object with new data every processing cycle to avoid
|
||||
* reallocating a new object every time.
|
||||
*/
|
||||
YaParameterChanges();
|
||||
YaParameterChanges() noexcept;
|
||||
|
||||
~YaParameterChanges() noexcept;
|
||||
|
||||
/**
|
||||
* Remove all parameter changes. Used when a null pointer gets passed to the
|
||||
* input parameters field, and so the plugin can output its own parameter
|
||||
* changes.
|
||||
*/
|
||||
void clear();
|
||||
void clear() noexcept;
|
||||
|
||||
/**
|
||||
* Read data from an `IParameterChanges` object into this existing object.
|
||||
*/
|
||||
void repopulate(Steinberg::Vst::IParameterChanges& original_queues);
|
||||
|
||||
~YaParameterChanges();
|
||||
|
||||
DECLARE_FUNKNOWN_METHODS
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user