Fix warnings about catching polymorphic types by value (#1843).
[dcpomatic.git] / src / wx / kdm_cpl_panel.cc
index 967fb28457e98800aea5997ac3bdcd45b35affde..8b4d93129dcd7d7a84e677a64748ea2f722ebb6e 100644 (file)
@@ -143,7 +143,7 @@ KDMCPLPanel::cpl_browse_clicked ()
                                0
                                )
                        );
-       } catch (cxml::Error) {
+       } catch (cxml::Error &) {
                error_dialog (this, _("This is not a valid CPL file"));
                return;
        }