mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +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,18 +16,19 @@
|
||||
|
||||
#include "plugin-factory-proxy.h"
|
||||
|
||||
Vst3PluginFactoryProxy::ConstructArgs::ConstructArgs() {}
|
||||
Vst3PluginFactoryProxy::ConstructArgs::ConstructArgs() noexcept {}
|
||||
|
||||
Vst3PluginFactoryProxy::ConstructArgs::ConstructArgs(
|
||||
Steinberg::IPtr<Steinberg::FUnknown> object)
|
||||
Steinberg::IPtr<Steinberg::FUnknown> object) noexcept
|
||||
: plugin_factory_args(object) {}
|
||||
|
||||
Vst3PluginFactoryProxy::Vst3PluginFactoryProxy(const ConstructArgs&& args)
|
||||
Vst3PluginFactoryProxy::Vst3PluginFactoryProxy(
|
||||
const ConstructArgs&& args) noexcept
|
||||
: YaPluginFactory3(std::move(args.plugin_factory_args)),
|
||||
arguments(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
// clang-format just doesn't understand these macros, I guess
|
||||
Vst3PluginFactoryProxy::~Vst3PluginFactoryProxy() {
|
||||
Vst3PluginFactoryProxy::~Vst3PluginFactoryProxy() noexcept {
|
||||
FUNKNOWN_DTOR
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user