From d007082daa03ddebd124c38393f42793a1b50811 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 26 Jun 2015 11:32:10 +0200 Subject: lib/asn1: Convert &vec[0] to vec.data() --- src/lib/asn1/der_enc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/asn1/der_enc.h') diff --git a/src/lib/asn1/der_enc.h b/src/lib/asn1/der_enc.h index 0e96fea3b..dbb97d1aa 100644 --- a/src/lib/asn1/der_enc.h +++ b/src/lib/asn1/der_enc.h @@ -99,13 +99,13 @@ class BOTAN_DLL DER_Encoder DER_Encoder& add_object(ASN1_Tag type_tag, ASN1_Tag class_tag, const std::vector& rep) { - return add_object(type_tag, class_tag, &rep[0], rep.size()); + return add_object(type_tag, class_tag, rep.data(), rep.size()); } DER_Encoder& add_object(ASN1_Tag type_tag, ASN1_Tag class_tag, const secure_vector& rep) { - return add_object(type_tag, class_tag, &rep[0], rep.size()); + return add_object(type_tag, class_tag, rep.data(), rep.size()); } DER_Encoder& add_object(ASN1_Tag type_tag, ASN1_Tag class_tag, -- cgit v1.2.3