Fix typos, fix some warnings, added more compile options, moved to forgejo CI
Some checks failed
Main LMDBAL workflow / Test LMDBAL with qt5 (push) Has been cancelled
Main LMDBAL workflow / Test LMDBAL with qt6 (push) Has been cancelled
Main LMDBAL workflow / Release documentation (push) Has been cancelled

This commit is contained in:
Blue 2025-05-02 18:19:06 +03:00
parent 3ae1fd15c0
commit 1585b8e4f5
Signed by: blue
GPG key ID: 9B203B252A63EE38
15 changed files with 204 additions and 120 deletions

View file

@ -34,7 +34,7 @@ public:
return value;
};
void deserialize(const MDB_val& data, std::string& result) {
result.assign((char*)data.mv_data, data.mv_size);
result.assign(static_cast<char *>(data.mv_data), data.mv_size);
}
MDB_val setData(const std::string& data) {
value = data;
@ -42,7 +42,7 @@ public:
};
MDB_val getData() {
MDB_val result;
result.mv_data = (char*)value.c_str();
result.mv_data = const_cast<char *>(value.c_str());
result.mv_size = value.size();
return result;
};