Fix warnings about catching polymorphic types by value (#1843).
[dcpomatic.git] / src / tools / dcpomatic_kdm.cc
index 6c1fbd8004c0fedbda1b482fd0480d068aa14b51..3b97fa2da2cb57882eb0ab7c29421ee27182e103 100644 (file)
@@ -437,7 +437,7 @@ private:
                                        std_to_wx(e.what())
                                        );
                                return;
-                       } catch (dcp::KDMDecryptionError) {
+                       } catch (dcp::KDMDecryptionError &) {
                                error_dialog (
                                        this,
                                        _("Could not decrypt the DKDM.  Perhaps it was not created with the correct certificate.")