Skip to content

Commit

Permalink
calf_plugins::load_gui_xml: Fix catching exception by value
Browse files Browse the repository at this point in the history
With -Werror with GCC 9:
error: catching polymorphic type 'struct calf_utils::file_exception' by value [-Werror=catch-value=]
  • Loading branch information
PhysSong committed Aug 4, 2022
1 parent f889b76 commit 0ae9287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/giface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ char *calf_plugins::load_gui_xml(const std::string &plugin_id)
try {
return strdup(calf_utils::load_file((std::string(PKGLIBDIR) + "/" + plugin_id + ".xml").c_str()).c_str());
}
catch(file_exception e)
catch(file_exception &e)
{
return NULL;
}
Expand Down

0 comments on commit 0ae9287

Please sign in to comment.