diff options
author | lloyd <[email protected]> | 2013-12-25 22:53:08 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-12-25 22:53:08 +0000 |
commit | a558fbfb082e1ee9ab77af46ea1d85049dda7028 (patch) | |
tree | 594b0e4089ac5662acf25e80db97f1f634c54c7d /src/asn1/asn1_oid.cpp | |
parent | 818887511b72bdaea4852997394bd85bf1dfe1fb (diff) |
Use a const reference return
Diffstat (limited to 'src/asn1/asn1_oid.cpp')
-rw-r--r-- | src/asn1/asn1_oid.cpp | 4 |
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; |