Skip to content

Commit ff74513

Browse files
committed
Get rid of deprecated c_array() function.
1 parent 9f65c42 commit ff74513

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/db.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ template<typename T, std::size_t n> struct sqlite3_column_impl<boost::array<T, n
7474
static boost::array<T, n> sqlite3_column(sqlite3_stmt* stmt, int i)
7575
{
7676
boost::array<T, n> result;
77-
memcpy(result.c_array(), sqlite3_column_blob(stmt, i), n);
77+
memcpy(result.data(), sqlite3_column_blob(stmt, i), n);
7878
assert(sqlite3_column_bytes(stmt, i) == n);
7979
return result;
8080
}

src/util.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class MD5
102102
boost::array<unsigned char, 16> finish()
103103
{
104104
boost::array<unsigned char, 16> result;
105-
md5_finish(&state, result.c_array());
105+
md5_finish(&state, result.data());
106106
return result;
107107
}
108108
static boost::array<unsigned char, 16> hash(const std::string& str)

0 commit comments

Comments
 (0)