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:
@@ -18,13 +18,13 @@
|
||||
|
||||
#include <cassert>
|
||||
|
||||
YaPhysicalUIMapList::YaPhysicalUIMapList() {}
|
||||
YaPhysicalUIMapList::YaPhysicalUIMapList() noexcept {}
|
||||
|
||||
YaPhysicalUIMapList::YaPhysicalUIMapList(
|
||||
const Steinberg::Vst::PhysicalUIMapList& list)
|
||||
const Steinberg::Vst::PhysicalUIMapList& list) noexcept
|
||||
: maps(list.map, list.map + list.count) {}
|
||||
|
||||
Steinberg::Vst::PhysicalUIMapList YaPhysicalUIMapList::get() {
|
||||
Steinberg::Vst::PhysicalUIMapList YaPhysicalUIMapList::get() noexcept {
|
||||
return Steinberg::Vst::PhysicalUIMapList{
|
||||
.count = static_cast<Steinberg::uint32>(maps.size()),
|
||||
.map = maps.data()};
|
||||
|
||||
Reference in New Issue
Block a user