src.ctf.fs: make get_stream_instance_unique_name return `const std::string &`
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 9 Apr 2024 21:08:19 +0000 (17:08 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 17 Apr 2024 17:57:53 +0000 (13:57 -0400)
commit2873fb8fd002ecb0c72d52f77a854523575ee603
tree0b5436aeea4551104995918a37d21c06065d711f
parentc8ca3c11efd73512470281d4f0af213dab23fd5f
src.ctf.fs: make get_stream_instance_unique_name return `const std::string &`

We always return the first stream's name.  Return a reference to that
name instead of a new object and a copy of the string.

Change-Id: I657265b74e0566a36f2ae05f6b5b1b6d21f53c66
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8290
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12327
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/ctf/fs-src/fs.cpp
This page took 0.023459 seconds and 4 git commands to generate.