mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-06 19:50:11 +02:00
Catch exceptions by reference
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ static LV2_Handle instantiate(const LV2_Descriptor*, double rate, const char*, c
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
catch(const std::exception)
|
||||
catch(const std::exception&)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ namespace NAM {
|
||||
|
||||
memcpy(response.path, msg->path, pathlen);
|
||||
}
|
||||
catch (std::exception)
|
||||
catch (const std::exception&)
|
||||
{
|
||||
response.path[0] = '\0';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user