Skip to content

Commit 7a646ab

Browse files
committed
Address linter braced-init returns in expressions
1 parent bd82d81 commit 7a646ab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/iceberg/expression/expressions.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ std::shared_ptr<CountAggregate> Expressions::Count(std::string name) {
9191
std::shared_ptr<CountAggregate> Expressions::Count(
9292
std::shared_ptr<UnboundTerm<BoundReference>> expr) {
9393
ICEBERG_ASSIGN_OR_THROW(auto agg, CountAggregate::Count(std::move(expr)));
94-
return std::shared_ptr<CountAggregate>{std::move(agg)};
94+
return {std::move(agg)};
9595
}
9696

9797
std::shared_ptr<CountAggregate> Expressions::CountNull(std::string name) {
@@ -101,7 +101,7 @@ std::shared_ptr<CountAggregate> Expressions::CountNull(std::string name) {
101101
std::shared_ptr<CountAggregate> Expressions::CountNull(
102102
std::shared_ptr<UnboundTerm<BoundReference>> expr) {
103103
ICEBERG_ASSIGN_OR_THROW(auto agg, CountAggregate::CountNull(std::move(expr)));
104-
return std::shared_ptr<CountAggregate>{std::move(agg)};
104+
return {std::move(agg)};
105105
}
106106

107107
std::shared_ptr<CountAggregate> Expressions::CountNotNull(std::string name) {
@@ -111,12 +111,12 @@ std::shared_ptr<CountAggregate> Expressions::CountNotNull(std::string name) {
111111
std::shared_ptr<CountAggregate> Expressions::CountNotNull(
112112
std::shared_ptr<UnboundTerm<BoundReference>> expr) {
113113
ICEBERG_ASSIGN_OR_THROW(auto agg, CountAggregate::Count(std::move(expr)));
114-
return std::shared_ptr<CountAggregate>{std::move(agg)};
114+
return {std::move(agg)};
115115
}
116116

117117
std::shared_ptr<CountAggregate> Expressions::CountStar() {
118118
auto agg = CountAggregate::CountStar();
119-
return std::shared_ptr<CountAggregate>{std::move(agg)};
119+
return {std::move(agg)};
120120
}
121121

122122
std::shared_ptr<ValueAggregate> Expressions::Max(std::string name) {
@@ -126,7 +126,7 @@ std::shared_ptr<ValueAggregate> Expressions::Max(std::string name) {
126126
std::shared_ptr<ValueAggregate> Expressions::Max(
127127
std::shared_ptr<UnboundTerm<BoundReference>> expr) {
128128
ICEBERG_ASSIGN_OR_THROW(auto agg, ValueAggregate::Max(std::move(expr)));
129-
return std::shared_ptr<ValueAggregate>{std::move(agg)};
129+
return {std::move(agg)};
130130
}
131131

132132
std::shared_ptr<ValueAggregate> Expressions::Min(std::string name) {
@@ -136,7 +136,7 @@ std::shared_ptr<ValueAggregate> Expressions::Min(std::string name) {
136136
std::shared_ptr<ValueAggregate> Expressions::Min(
137137
std::shared_ptr<UnboundTerm<BoundReference>> expr) {
138138
ICEBERG_ASSIGN_OR_THROW(auto agg, ValueAggregate::Min(std::move(expr)));
139-
return std::shared_ptr<ValueAggregate>{std::move(agg)};
139+
return {std::move(agg)};
140140
}
141141

142142
// Template implementations for unary predicates

0 commit comments

Comments
 (0)