Fix some compiler warnings (exception catches)

This commit is contained in:
Robin Gareus 2018-10-26 14:25:55 +02:00
parent 7c3fd2fe79
commit 08d205c533
3 changed files with 3 additions and 3 deletions

View file

@ -55,7 +55,7 @@ AudioPlaylistImportHandler::AudioPlaylistImportHandler (XMLTree const & source,
if ( !type || type->value() == "audio" ) {
try {
elements.push_back (ElementPtr ( new AudioPlaylistImporter (source, session, *this, **it)));
} catch (failed_constructor err) {
} catch (failed_constructor const&) {
set_dirty();
}
}

View file

@ -62,7 +62,7 @@ AudioRegionImportHandler::create_regions_from_children (XMLNode const & node, El
if (!(*it)->name().compare ("Region") && (!type || type->value() == "audio") ) {
try {
list.push_back (ElementPtr ( new AudioRegionImporter (source, session, *this, **it)));
} catch (failed_constructor err) {
} catch (failed_constructor const&) {
set_dirty();
}
}

View file

@ -49,7 +49,7 @@ LocationImportHandler::LocationImportHandler (XMLTree const & source, Session &
for (XMLNodeList::const_iterator it = locations.begin(); it != locations.end(); ++it) {
try {
elements.push_back (ElementPtr ( new LocationImporter (source, session, *this, **it)));
} catch (failed_constructor err) {
} catch (failed_constructor const&) {
_dirty = true;
}
}