Skip to content

Commit f8c93b3

Browse files
committed
fix: review comment
1 parent f7f4571 commit f8c93b3

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/iceberg/expression/residual_evaluator.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020
#include "iceberg/expression/residual_evaluator.h"
2121

22-
#include <cstddef>
23-
2422
#include "iceberg/expression/binder.h"
2523
#include "iceberg/expression/expression.h"
2624
#include "iceberg/expression/expression_visitor.h"
@@ -461,7 +459,7 @@ Result<std::shared_ptr<Expression>> ResidualVisitor::Predicate(
461459
} else {
462460
// If the result is not a predicate, then it must be a constant like alwaysTrue
463461
// or alwaysFalse
464-
strict_result = bound_strict;
462+
strict_result = std::move(bound_strict);
465463
}
466464
}
467465

@@ -492,7 +490,7 @@ Result<std::shared_ptr<Expression>> ResidualVisitor::Predicate(
492490
} else {
493491
// If the result is not a predicate, then it must be a constant like alwaysTrue
494492
// or alwaysFalse
495-
inclusive_result = bound_inclusive;
493+
inclusive_result = std::move(bound_inclusive);
496494
}
497495
}
498496

0 commit comments

Comments
 (0)