src.ctf.lttng-live: make lttng_live_session::traces an std::vector
[babeltrace.git] / src / plugins / ctf / lttng-live / lttng-live.hpp
index d8a0f2a7de23c653c0d5f33c6748013bf84b9ee3..e2b037cb1d4da9259703264b8d4dd8e42da97533 100644 (file)
@@ -177,6 +177,8 @@ enum lttng_live_metadata_stream_state
 
 struct lttng_live_trace
 {
+    using UP = std::unique_ptr<lttng_live_trace>;
+
     explicit lttng_live_trace(const bt2c::Logger& parentLogger) :
         logger {parentLogger, "PLUGIN/SRC.CTF.LTTNG-LIVE/TRACE"}
     {
@@ -226,8 +228,7 @@ struct lttng_live_session
 
     uint64_t id = 0;
 
-    /* Array of pointers to struct lttng_live_trace. */
-    GPtrArray *traces = nullptr;
+    std::vector<lttng_live_trace::UP> traces;
 
     bool attached = false;
     bool new_streams_needed = false;
This page took 0.022018 seconds and 4 git commands to generate.