Skip to content
Snippets Groups Projects
Commit 6a3a9fdd authored by Adrien Béraud's avatar Adrien Béraud
Browse files

jni cleanup

Change-Id: I311c5bdbc4a1634a1e68a8a887e1cf1ba0009663
parent 5c45fab3
No related branches found
No related tags found
No related merge requests found
......@@ -130,14 +130,14 @@ namespace std {
std::vector<std::string> k;
k.reserve($self->size());
for (const auto& i : *$self) {
k.push_back(i.first);
k.emplace_back(i.first);
}
return k;
}
void setRaw(std::string key, const vector<uint8_t>& value) {
void setRaw(const std::string& key, const vector<uint8_t>& value) {
(*$self)[key] = std::string(value.data(), value.data()+value.size());
}
std::vector<uint8_t> getRaw(std::string key) {
std::vector<uint8_t> getRaw(const std::string& key) {
auto& v = $self->at(key);
return {v.begin(), v.end()};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment