Skip to content

Commit aa72a65

Browse files
committed
Fixed build
1 parent 6ddbee5 commit aa72a65

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

include/sparser.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class CascadeBuilder {
8080
std::vector<std::shared_ptr<Node>> HandleSuccess(const size_t current_depth, const size_t conjunction_idx);
8181
};
8282

83-
void PrettyPrint(const std::shared_ptr<Node>& node, const std::string& prefix = "", bool isLeft = true,
84-
std::ostream& os = std::cout);
83+
void PrettyPrint(const std::shared_ptr<Node>& node, const RawFilterDisjunction& rf_data, const std::string& prefix = "",
84+
bool isLeft = true, std::ostream& os = std::cout);
8585

8686
#endif // SPARSER_H_

src/sparser/sparser.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ std::vector<std::shared_ptr<Node>> CascadeBuilder::HandleSuccess(const size_t cu
158158
return valid_subtrees;
159159
}
160160

161-
void PrettyPrint(const std::shared_ptr<Node>& node, const std::string& prefix, bool isLeft, std::ostream& os,
162-
RawFilterDisjunction& rf_data) {
161+
void PrettyPrint(const std::shared_ptr<Node>& node, RawFilterDisjunction& rf_data, const std::string& prefix,
162+
bool isLeft, std::ostream& os) {
163163
if (!node) {
164164
// Print "NULL" or some placeholder for an empty child.
165165
os << prefix << (isLeft ? "├── " : "└── ") << "NULL\n";
@@ -177,6 +177,6 @@ void PrettyPrint(const std::shared_ptr<Node>& node, const std::string& prefix, b
177177
auto newPrefix = prefix + (isLeft ? "" : " ");
178178

179179
// Recursively print left and right subtrees.
180-
PrettyPrint(node->left, newPrefix, true, os);
181-
PrettyPrint(node->right, newPrefix, false, os);
180+
PrettyPrint(node->left, rf_data, newPrefix, true, os);
181+
PrettyPrint(node->right, rf_data, newPrefix, false, os);
182182
}

0 commit comments

Comments
 (0)