Fix some compiler warnings (exception catches)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user