summaryrefslogtreecommitdiffstats
path: root/src/kv
diff options
context:
space:
mode:
Diffstat (limited to 'src/kv')
-rw-r--r--src/kv/MemDB.h2
-rw-r--r--src/kv/RocksDBStore.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/kv/MemDB.h b/src/kv/MemDB.h
index e2fa40a2086..16b4aed8dd1 100644
--- a/src/kv/MemDB.h
+++ b/src/kv/MemDB.h
@@ -98,7 +98,7 @@ public:
void clear() {
ops.clear();
}
- MDBTransactionImpl(MemDB* _db) :m_db(_db)
+ explicit MDBTransactionImpl(MemDB* _db) :m_db(_db)
{
ops.clear();
}
diff --git a/src/kv/RocksDBStore.cc b/src/kv/RocksDBStore.cc
index 7f72e23ed03..ee276e2582a 100644
--- a/src/kv/RocksDBStore.cc
+++ b/src/kv/RocksDBStore.cc
@@ -85,7 +85,7 @@ public:
return store.assoc_name.c_str();
}
- MergeOperatorRouter(RocksDBStore &_store) : store(_store) {}
+ explicit MergeOperatorRouter(RocksDBStore &_store) : store(_store) {}
bool Merge(const rocksdb::Slice& key,
const rocksdb::Slice* existing_value,
@@ -124,7 +124,7 @@ class RocksDBStore::MergeOperatorLinker
private:
std::shared_ptr<KeyValueDB::MergeOperator> mop;
public:
- MergeOperatorLinker(const std::shared_ptr<KeyValueDB::MergeOperator> &o) : mop(o) {}
+ explicit MergeOperatorLinker(const std::shared_ptr<KeyValueDB::MergeOperator> &o) : mop(o) {}
const char *Name() const override {
return mop->name().c_str();