aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/loadstor.h
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-23 18:22:19 +0200
committerSimon Warta <[email protected]>2015-06-23 18:22:19 +0200
commitfcb249320e9529c772fde21195659cc81cb57c73 (patch)
tree883a3e2e0c562a915dfaa555ed5471a32bef5262 /src/lib/utils/loadstor.h
parent345ca08a751ae2969cfb78ef38fddfa0f0f30c00 (diff)
lib/utils: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/utils/loadstor.h')
-rw-r--r--src/lib/utils/loadstor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/loadstor.h b/src/lib/utils/loadstor.h
index 4db3d07fa..d3871480c 100644
--- a/src/lib/utils/loadstor.h
+++ b/src/lib/utils/loadstor.h
@@ -641,7 +641,7 @@ void copy_out_be(byte out[], size_t out_bytes, const T in[])
template<typename T, typename Alloc>
void copy_out_vec_be(byte out[], size_t out_bytes, const std::vector<T, Alloc>& in)
{
- copy_out_be(out, out_bytes, &in[0]);
+ copy_out_be(out, out_bytes, in.data());
}
template<typename T>
@@ -662,7 +662,7 @@ void copy_out_le(byte out[], size_t out_bytes, const T in[])
template<typename T, typename Alloc>
void copy_out_vec_le(byte out[], size_t out_bytes, const std::vector<T, Alloc>& in)
{
- copy_out_le(out, out_bytes, &in[0]);
+ copy_out_le(out, out_bytes, in.data());
}
}