aboutsummaryrefslogtreecommitdiffstats
path: root/src/asn1/asn1_oid.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-12-25 22:53:08 +0000
committerlloyd <[email protected]>2013-12-25 22:53:08 +0000
commita558fbfb082e1ee9ab77af46ea1d85049dda7028 (patch)
tree594b0e4089ac5662acf25e80db97f1f634c54c7d /src/asn1/asn1_oid.cpp
parent818887511b72bdaea4852997394bd85bf1dfe1fb (diff)
Use a const reference return
Diffstat (limited to 'src/asn1/asn1_oid.cpp')
-rw-r--r--src/asn1/asn1_oid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asn1/asn1_oid.cpp b/src/asn1/asn1_oid.cpp
index bbbfd822b..964315080 100644
--- a/src/asn1/asn1_oid.cpp
+++ b/src/asn1/asn1_oid.cpp
@@ -104,8 +104,8 @@ bool operator!=(const OID& a, const OID& b)
*/
bool operator<(const OID& a, const OID& b)
{
- std::vector<u32bit> oid1 = a.get_id();
- std::vector<u32bit> oid2 = b.get_id();
+ const std::vector<u32bit>& oid1 = a.get_id();
+ const std::vector<u32bit>& oid2 = b.get_id();
if(oid1.size() < oid2.size())
return true;