src.ctf.fs: make ctf_fs_ds_index_create return a unique_ptr
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 8 Jun 2022 20:04:22 +0000 (16:04 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Aug 2022 16:06:16 +0000 (12:06 -0400)
commit11e6a045d880253ba1b2cdd8b195b65776441b20
tree926d611d08308d6de0a33cd94757e85316dcd772
parent49befcfdef1cbad94391f76b80da856307c45f45
src.ctf.fs: make ctf_fs_ds_index_create return a unique_ptr

Introduce ctf_fs_ds_index::UP, a unique_ptr with a deleter that calls
ctf_fs_ds_index_destroy.  Make ctf_fs_ds_index_create (and the
other functions creating in index in data-stream-file.cpp) return it.

Change-Id: Id04124aeaff3384e566a43fbbd6c1fedd2bf9bc3
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8251
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/fs-src/data-stream-file.cpp
src/plugins/ctf/fs-src/data-stream-file.hpp
src/plugins/ctf/fs-src/fs.cpp
This page took 0.026232 seconds and 5 git commands to generate.