-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-37891: [C++] Pass shared_ptr<DataType> by value in SliceBuffer-rel…
…ated constructors (#45466) ### Rationale for this change These changes facilitate the process of moving newly constructed shared_ptr without the need of adding a refcount and still support cases where a reference of a shared_ptr is passed from caller. ### What changes are included in this PR? - Change `SliceBuffer`-related constructor to take `shared_ptr` by value instead of `const &`. - Change `SliceBufferSafe`-related constructor to take `shared_ptr` by value instead of `const &`. - Change `SliceMutableBufferSafe` -related constructors to take `shared_ptr` by value instead of `const &`. ### Are these changes tested? Yes, by existing tests. ### Are there any user-facing changes? No, the API changes should not break any compatibility. * GitHub Issue: #37891 Lead-authored-by: chrisxu333 <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Signed-off-by: Antoine Pitrou <[email protected]>
- Loading branch information
1 parent
12cdaaa
commit 31994b5
Showing
2 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters