mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-14 12:30:00 +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:
@@ -59,7 +59,7 @@ class Configuration {
|
||||
/**
|
||||
* Create an empty configuration object with default settings.
|
||||
*/
|
||||
Configuration();
|
||||
Configuration() noexcept;
|
||||
|
||||
/**
|
||||
* Load the configuration for an instance of yabridge from a configuration
|
||||
@@ -180,7 +180,7 @@ class Configuration {
|
||||
* The delay in milliseconds between calls to the event loop and to
|
||||
* `effEditIdle` for VST2 plugins. This is based on `frame_rate`.
|
||||
*/
|
||||
std::chrono::steady_clock::duration event_loop_interval() const;
|
||||
std::chrono::steady_clock::duration event_loop_interval() const noexcept;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
|
||||
Reference in New Issue
Block a user