Fix catch of polymorphic type by value

This commit is contained in:
David Robillard 2019-12-09 22:58:08 +01:00
parent 184bf7fd25
commit 21e9c41d96

View file

@ -35,7 +35,7 @@ PBD::demangle_symbol (const std::string& mangled_symbol)
std::string demangled_symbol (realname);
free (realname);
return demangled_symbol;
} catch (std::exception) {
} catch (const std::exception&) {
}
#endif