aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/prov
diff options
context:
space:
mode:
authorrumcajs <[email protected]>2018-10-14 11:41:00 +0200
committerrumcajs <[email protected]>2018-10-14 11:41:00 +0200
commit2f53c434f88e1c39e86c978f3523ebc1051996a9 (patch)
treea2628a317cd5dd105c3ba8a9c7820bef2f0b5450 /src/lib/prov
parent9249da3c4e87bfbdbe88882e65ae01d1f90e31eb (diff)
move instead of copy
Diffstat (limited to 'src/lib/prov')
-rw-r--r--src/lib/prov/pkcs11/p11_object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/prov/pkcs11/p11_object.cpp b/src/lib/prov/pkcs11/p11_object.cpp
index 5affa43b3..66fe535b3 100644
--- a/src/lib/prov/pkcs11/p11_object.cpp
+++ b/src/lib/prov/pkcs11/p11_object.cpp
@@ -21,7 +21,7 @@ AttributeContainer::AttributeContainer(ObjectClass object_class)
void AttributeContainer::add_class(ObjectClass object_class)
{
- m_numerics.push_back(static_cast< uint64_t >(object_class));
+ m_numerics.emplace_back(static_cast< uint64_t >(object_class));
add_attribute(AttributeType::Class, reinterpret_cast< uint8_t* >(&m_numerics.back()), sizeof(ObjectClass));
}