Fix warnings from -Weffc++

This commit is contained in:
Sebastian Meßmer 2015-10-17 21:17:38 +02:00
parent 88a9653137
commit a3f557ef63
5 changed files with 16 additions and 0 deletions

View File

@ -40,8 +40,12 @@ public:
void flush() {
return _baseTree->flush();
}
private:
datatreestore::DataTree *_baseTree;
DISALLOW_COPY_AND_ASSIGN(DataTreeRef);
};
}

View File

@ -106,6 +106,10 @@ public:
Data ZEROES;
unique_ref<DataLeafNode> leaf;
unique_ref<DataInnerNode> node;
private:
DISALLOW_COPY_AND_ASSIGN(DataInnerNodeTest);
};
constexpr uint32_t DataInnerNodeTest::BLOCKSIZE_BYTES;

View File

@ -112,6 +112,9 @@ public:
Data ZEROES;
Data randomData;
unique_ref<DataLeafNode> leaf;
private:
DISALLOW_COPY_AND_ASSIGN(DataLeafNodeTest);
};
constexpr uint32_t DataLeafNodeTest::BLOCKSIZE_BYTES;

View File

@ -22,6 +22,8 @@ MATCHER_P(KeyEq, expected, "node key equals") {
class DataTreeTest_TraverseLeaves: public DataTreeTest {
public:
DataTreeTest_TraverseLeaves() :traversor() {}
unique_ref<DataInnerNode> CreateThreeLevel() {
return CreateInner({
CreateFullTwoLevel(),

View File

@ -55,6 +55,9 @@ public:
void EXPECT_IS_FULL_THREELEVEL_TREE(const blockstore::Key &key);
void CHECK_DEPTH(int depth, const blockstore::Key &key);
private:
DISALLOW_COPY_AND_ASSIGN(DataTreeTest);
};