diff options
author | Daniel Neus <[email protected]> | 2016-02-08 21:01:11 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-02-08 21:07:18 +0100 |
commit | 4242b7593b5aae2b2d1483fcc7ff002c1deeb956 (patch) | |
tree | fcaaab2bf7d050852e90b6694813fdd3b6551786 /src/lib/asn1 | |
parent | 9102d33dbd35e36d385ad813220446384a214030 (diff) |
V816 It is more efficient to catch exception by reference rather than by value. asn1_time.cpp 159
Diffstat (limited to 'src/lib/asn1')
-rw-r--r-- | src/lib/asn1/asn1_time.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/asn1/asn1_time.cpp b/src/lib/asn1/asn1_time.cpp index a9dffa95c..67fc8b5ac 100644 --- a/src/lib/asn1/asn1_time.cpp +++ b/src/lib/asn1/asn1_time.cpp @@ -149,14 +149,14 @@ void X509_Time::set_to(const std::string& t_spec, ASN1_Tag spec_tag) set_to(t_spec, GENERALIZED_TIME); return; } - catch(Invalid_Argument) {} // Not a generalized time. Continue + catch(Invalid_Argument&) {} // Not a generalized time. Continue try { set_to(t_spec, UTC_TIME); return; } - catch(Invalid_Argument) {} // Not a UTC time. Continue + catch(Invalid_Argument&) {} // Not a UTC time. Continue throw Invalid_Argument("Time string could not be parsed as GeneralizedTime or UTCTime."); } |