Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions firestore/src/main/aggregate_query_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ Future<AggregateQuerySnapshot> AggregateQueryInternal::Get(

bool operator==(const AggregateQueryInternal& lhs,
const AggregateQueryInternal& rhs) {
// TODO(b/276440573) - there needs to be equals operator defined on
// api::AggregateQuery
return lhs.aggregate_query_.query() == rhs.aggregate_query_.query();
return lhs.aggregate_query_ == rhs.aggregate_query_;
}

} // namespace firestore
Expand Down
4 changes: 1 addition & 3 deletions firestore/src/main/aggregate_query_snapshot_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@ int64_t AggregateQuerySnapshotInternal::count() const { return count_result_; }

bool operator==(const AggregateQuerySnapshotInternal& lhs,
const AggregateQuerySnapshotInternal& rhs) {
// TODO(b/276440573) - there needs to be equals operator defined on
// api::AggregateQuery
return lhs.aggregate_query_.query() == rhs.aggregate_query_.query() &&
return lhs.aggregate_query_ == rhs.aggregate_query_ &&
lhs.count_result_ == rhs.count_result_;
}

Expand Down