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:
Robbert van der Helm
2021-05-14 17:12:24 +02:00
parent db6ecdbbd4
commit 59ba2aeb5f
126 changed files with 536 additions and 515 deletions
@@ -16,18 +16,18 @@
#include "plug-frame-proxy.h"
Vst3PlugFrameProxy::ConstructArgs::ConstructArgs() {}
Vst3PlugFrameProxy::ConstructArgs::ConstructArgs() noexcept {}
Vst3PlugFrameProxy::ConstructArgs::ConstructArgs(
Steinberg::IPtr<Steinberg::FUnknown> object,
size_t owner_instance_id)
size_t owner_instance_id) noexcept
: owner_instance_id(owner_instance_id), plug_frame_args(object) {}
Vst3PlugFrameProxy::Vst3PlugFrameProxy(const ConstructArgs&& args)
Vst3PlugFrameProxy::Vst3PlugFrameProxy(const ConstructArgs&& args) noexcept
: YaPlugFrame(std::move(args.plug_frame_args)),
arguments(std::move(args)){FUNKNOWN_CTOR}
Vst3PlugFrameProxy::~Vst3PlugFrameProxy() {
Vst3PlugFrameProxy::~Vst3PlugFrameProxy() noexcept {
FUNKNOWN_DTOR
}