Catch exceptions by reference

This commit is contained in:
Mike Oliphant
2023-07-12 09:50:27 -07:00
parent c990eedf33
commit d4482b3b14
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ static LV2_Handle instantiate(const LV2_Descriptor*, double rate, const char*, c
return nullptr; return nullptr;
} }
catch(const std::exception) catch(const std::exception&)
{ {
return nullptr; return nullptr;
} }
+1 -1
View File
@@ -127,7 +127,7 @@ namespace NAM {
memcpy(response.path, msg->path, pathlen); memcpy(response.path, msg->path, pathlen);
} }
catch (std::exception) catch (const std::exception&)
{ {
response.path[0] = '\0'; response.path[0] = '\0';