aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/datastor/datastor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/datastor/datastor.cpp')
-rw-r--r--src/lib/utils/datastor/datastor.cpp4
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()));
}
/*