Skip to content

Commit

Permalink
Change std::shared_ptr to Lib::SmartPtr
Browse files Browse the repository at this point in the history
  • Loading branch information
mezpusz committed Sep 12, 2024
1 parent bb7fac8 commit df71b21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Kernel/LPOComparator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void LPOComparator::expand(Branch& branch, const LPO& lpo)
{
// take temporary ownership of node
Branch nodeHolder = branch;
auto node = nodeHolder.n.get();
auto node = nodeHolder.n.ptr();

// Use compare here to filter out as many
// precomputable comparisons as possible.
Expand Down
2 changes: 1 addition & 1 deletion Kernel/LPOComparator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class LPOComparator

struct Branch {
BranchTag tag;
std::shared_ptr<Node> n;
SmartPtr<Node> n;

explicit Branch(BranchTag t) : tag(t), n(nullptr) { ASS(t==BranchTag::T_GREATER || t==BranchTag::T_NOT_GREATER); }
explicit Branch(TermList lhs, TermList rhs) : tag(BranchTag::T_UNKNOWN), n(new Node(lhs, rhs)) {}
Expand Down

0 comments on commit df71b21

Please sign in to comment.