aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/asn1
diff options
context:
space:
mode:
authorDaniel Neus <[email protected]>2016-02-08 21:01:11 +0100
committerDaniel Neus <[email protected]>2016-02-08 21:07:18 +0100
commit4242b7593b5aae2b2d1483fcc7ff002c1deeb956 (patch)
treefcaaab2bf7d050852e90b6694813fdd3b6551786 /src/lib/asn1
parent9102d33dbd35e36d385ad813220446384a214030 (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.cpp4
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.");
}