From 4242b7593b5aae2b2d1483fcc7ff002c1deeb956 Mon Sep 17 00:00:00 2001 From: Daniel Neus Date: Mon, 8 Feb 2016 21:01:11 +0100 Subject: V816 It is more efficient to catch exception by reference rather than by value. asn1_time.cpp 159 --- src/lib/pubkey/pk_keys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/pubkey/pk_keys.cpp') diff --git a/src/lib/pubkey/pk_keys.cpp b/src/lib/pubkey/pk_keys.cpp index 635934037..ebaa0eb69 100644 --- a/src/lib/pubkey/pk_keys.cpp +++ b/src/lib/pubkey/pk_keys.cpp @@ -19,7 +19,7 @@ OID Public_Key::get_oid() const try { return OIDS::lookup(algo_name()); } - catch(Lookup_Error) + catch(Lookup_Error&) { throw Lookup_Error("PK algo " + algo_name() + " has no defined OIDs"); } -- cgit v1.2.3