aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-26 11:14:43 +0200
committerSimon Warta <[email protected]>2015-06-27 10:57:40 +0200
commit7df3b0226b8b491bd98198d26b6808e26d01cc60 (patch)
tree8bc70828bb00d96a71161a1badfd66128e2e1b88
parentfdc1fba275933dfccc347774f9c13c1c6253113a (diff)
lib/compression: Convert &vec[0] to vec.data()
-rw-r--r--src/lib/compression/compression.cpp4
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);
}