diff options
author | Simon Warta <[email protected]> | 2015-06-26 11:14:43 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-27 10:57:40 +0200 |
commit | 7df3b0226b8b491bd98198d26b6808e26d01cc60 (patch) | |
tree | 8bc70828bb00d96a71161a1badfd66128e2e1b88 /src/lib/compression/compression.cpp | |
parent | fdc1fba275933dfccc347774f9c13c1c6253113a (diff) |
lib/compression: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/compression/compression.cpp')
-rw-r--r-- | src/lib/compression/compression.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<byte>& 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<byte>& 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); } |