mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +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:
@@ -52,7 +52,7 @@ LibArchitecture find_dll_architecture(const fs::path& plugin_path) {
|
||||
throw std::runtime_error(error_msg.str());
|
||||
}
|
||||
|
||||
PluginType plugin_type_from_string(const std::string& plugin_type) {
|
||||
PluginType plugin_type_from_string(const std::string& plugin_type) noexcept {
|
||||
if (plugin_type == "VST2") {
|
||||
return PluginType::vst2;
|
||||
} else if (plugin_type == "VST3") {
|
||||
|
||||
Reference in New Issue
Block a user