src.ctf.fs: store index entry objects instead of pointers
[babeltrace.git] / src / plugins / ctf / fs-src / query.cpp
index b4b639080a48f99f8ee9815306914f0026603276..890a3445b62fb3c0e755ebc0e03c8bd519791348 100644 (file)
@@ -127,13 +127,13 @@ static void populate_stream_info(struct ctf_fs_ds_file_group *group, const bt2::
     BT_ASSERT(!group->index->entries.empty());
 
     /* First entry. */
-    const auto first_ds_index_entry = group->index->entries.front().get();
+    const auto& first_ds_index_entry = group->index->entries.front();
 
     /* Last entry. */
-    const auto last_ds_index_entry = group->index->entries.back().get();
+    const auto& last_ds_index_entry = group->index->entries.back();
 
-    stream_range->begin_ns = first_ds_index_entry->timestamp_begin_ns;
-    stream_range->end_ns = last_ds_index_entry->timestamp_end_ns;
+    stream_range->begin_ns = first_ds_index_entry.timestamp_begin_ns;
+    stream_range->end_ns = last_ds_index_entry.timestamp_end_ns;
 
     /*
      * If any of the begin and end timestamps is not set it means that
This page took 0.023657 seconds and 4 git commands to generate.