try {
script = Glib::file_get_contents (path);
- } catch (Glib::FileError err) {
+ } catch (Glib::FileError const& err) {
return PluginPtr ();
}
try {
std::string script = Glib::file_get_contents (fn);
sha1_write (&s, (const uint8_t *) script.c_str(), script.size ());
- } catch (Glib::FileError err) {
+ } catch (Glib::FileError const& err) {
return LuaScriptInfoPtr();
}
}
PBD::fatal << string_compose (_("The session's interchange dir is tainted.\nThere is more than one folder in '%1'.\nPlease remove extra subdirs to reduce possible filename ambiguties."), sources_root_path) << endmsg;
assert (0); // not reached
}
- } catch (Glib::FileError) {
+ } catch (Glib::FileError const&) {
;
}
try {
script = Glib::file_get_contents (spi->path);
- } catch (Glib::FileError e) {
+ } catch (Glib::FileError const& e) {
CPPUNIT_FAIL ("Cannot read script file");
continue;
}
}
}
}
- catch (Glib::FileError& e) {
+ catch (Glib::FileError const& e) {
std::cerr << "listing /Volumnes failed: " << e.what() << std::endl;
}
#endif
}
}
}
- catch (Glib::FileError& err)
+ catch (Glib::FileError const& err)
{
warning << err.what() << endmsg;
}