src.ctf.fs: make ctf_fs_component::trace a unique_ptr
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 9 Apr 2024 21:03:42 +0000 (17:03 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 17 Apr 2024 17:57:53 +0000 (13:57 -0400)
commit7df773f2c13b7e624f503c51605ddcae31625a30
tree03efd3f9b6e8eb6eb502ac1e50286a411bcc4ec1
parent09721481dadde68a4b1e031051dc21826d16c822
src.ctf.fs: make ctf_fs_component::trace a unique_ptr

Define ctf_fs_trace::UP to be a unique_ptr type with a deleter that
calls ctf_fs_trace_destroy (the custom deleter will go away once
ctf_fs_trace is properly destructible).  Change ctf_fs_component::trace
to be of this type.

Change-Id: Iaf8111922b320781d7e9333bcdc5db129192509d
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8240
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12279
src/plugins/ctf/fs-src/fs.cpp
src/plugins/ctf/fs-src/fs.hpp
src/plugins/ctf/fs-src/query.cpp
This page took 0.023828 seconds and 4 git commands to generate.