From 7df3b0226b8b491bd98198d26b6808e26d01cc60 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Fri, 26 Jun 2015 11:14:43 +0200 Subject: lib/compression: Convert &vec[0] to vec.data() --- src/lib/compression/compression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/compression/compression.cpp') diff --git a/src/lib/compression/compression.cpp b/src/lib/compression/compression.cpp index 0e0221fe6..6057f9408 100644 --- a/src/lib/compression/compression.cpp +++ b/src/lib/compression/compression.cpp @@ -124,7 +124,7 @@ void Stream_Compression::process(secure_vector& buf, size_t offset, u32bit } } - copy_mem(&m_buffer[0], &buf[0], offset); + copy_mem(m_buffer.data(), buf.data(), offset); buf.swap(m_buffer); } @@ -205,7 +205,7 @@ void Stream_Decompression::process(secure_vector& buf, size_t offset, u32b } } - copy_mem(&m_buffer[0], &buf[0], offset); + copy_mem(m_buffer.data(), buf.data(), offset); buf.swap(m_buffer); } -- cgit v1.2.3