diff options
author | Simon Warta <[email protected]> | 2015-06-23 18:22:19 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2015-06-23 18:22:19 +0200 |
commit | fcb249320e9529c772fde21195659cc81cb57c73 (patch) | |
tree | 883a3e2e0c562a915dfaa555ed5471a32bef5262 /src/lib/utils/datastor/datastor.cpp | |
parent | 345ca08a751ae2969cfb78ef38fddfa0f0f30c00 (diff) |
lib/utils: Convert &vec[0] to vec.data()
Diffstat (limited to 'src/lib/utils/datastor/datastor.cpp')
-rw-r--r-- | src/lib/utils/datastor/datastor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/datastor/datastor.cpp b/src/lib/utils/datastor/datastor.cpp index 344c03f7c..69c1bf453 100644 --- a/src/lib/utils/datastor/datastor.cpp +++ b/src/lib/utils/datastor/datastor.cpp @@ -141,12 +141,12 @@ void Data_Store::add(const std::string& key, u32bit val) */ void Data_Store::add(const std::string& key, const secure_vector<byte>& val) { - add(key, hex_encode(&val[0], val.size())); + add(key, hex_encode(val.data(), val.size())); } void Data_Store::add(const std::string& key, const std::vector<byte>& val) { - add(key, hex_encode(&val[0], val.size())); + add(key, hex_encode(val.data(), val.size())); } /* |