Fix some compiler warnings (exception catches)
authorRobin Gareus <robin@gareus.org>
Fri, 26 Oct 2018 12:25:55 +0000 (14:25 +0200)
committerRobin Gareus <robin@gareus.org>
Fri, 26 Oct 2018 12:25:55 +0000 (14:25 +0200)
libs/ardour/audio_playlist_importer.cc
libs/ardour/audio_region_importer.cc
libs/ardour/location_importer.cc

index c1afdfe535e1862b24481f0bd4a77eef6c21cbe5..65f3410fcd366843e29eaca461e395f2de0a7bfd 100644 (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();
                        }
                }
index 1b9263b0261909ea5d82c7b62064401c0d1ccce1..1fc2537af1b19793b9e88c7d36c99f0a3db556bb 100644 (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();
                        }
                }
index b209e5f63f72a027eb228de35f50e158dedf258b..60b6161a4e18e556310f8072492f0d44f3396b8d 100644 (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;
                }
        }