diff options
author | Frank Busse <bb0xfb@gmail.com> | 2019-09-11 21:27:11 +0100 |
---|---|---|
committer | MartinNowack <martin.nowack@gmail.com> | 2019-09-20 15:45:39 +0100 |
commit | 0aed7731210d0eb41c0ea767edb8067130cf6252 (patch) | |
tree | 61e6aa1241474e419568ac8b4d1a73c7c17c3f85 /lib/Core/PTree.h | |
parent | d773e3f762affd7189d34fbd6d1e7e0e5af3f712 (diff) | |
download | klee-0aed7731210d0eb41c0ea767edb8067130cf6252.tar.gz |
refactor PTree: use unique_ptr
Diffstat (limited to 'lib/Core/PTree.h')
-rw-r--r-- | lib/Core/PTree.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Core/PTree.h b/lib/Core/PTree.h index 6456b57f..01632ebf 100644 --- a/lib/Core/PTree.h +++ b/lib/Core/PTree.h @@ -18,8 +18,8 @@ namespace klee { class PTreeNode { public: PTreeNode *parent = nullptr; - PTreeNode *left = nullptr; - PTreeNode *right = nullptr; + std::unique_ptr<PTreeNode> left; + std::unique_ptr<PTreeNode> right; ExecutionState *state = nullptr; PTreeNode(const PTreeNode&) = delete; @@ -29,7 +29,7 @@ namespace klee { class PTree { public: - PTreeNode * root = nullptr; + std::unique_ptr<PTreeNode> root; explicit PTree(ExecutionState *initialState); ~PTree() = default; |