Skip to content

Commit

Permalink
Use constructor not copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenv committed Feb 21, 2024
1 parent 3e5250a commit 8804db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libtiledbsoma/src/soma/managed_query.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ class ManagedQuery {
, ctx_(other.ctx_)
, name_(other.name_)
, schema_(other.schema_)
, query_(std::make_unique<Query>(*query_))
, subarray_(std::make_unique<Subarray>(*subarray_))
, query_(std::make_unique<Query>(*other.ctx_, *other.array_))
, subarray_(std::make_unique<Subarray>(*other.ctx_, *other.array_))
, subarray_range_set_(other.subarray_range_set_)
, subarray_range_empty_(other.subarray_range_empty_)
, columns_(other.columns_)
Expand Down

0 comments on commit 8804db9

Please sign in to comment.