tests/lib/conds: change `nameSuffix` type to `bt2c::CStringView`
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 20 Mar 2024 19:58:44 +0000 (15:58 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Mar 2024 18:56:36 +0000 (14:56 -0400)
commit4ad4365795e89089c88b28c483bb19fe77091632
tree6651062b17d04ca76dd22bf442c17c3d936baeb2
parentd8451d46404b3f4119808d29d21b8ffa10130e1f
tests/lib/conds: change `nameSuffix` type to `bt2c::CStringView`

I'm not sure why `nameSuffix` is passed as a `const
bt2s::optional<std::string>&` currently.  `bt2c::CStringView` seems like
a good fit for it.  It avoids unnecessarily creating `std::string`s when
the caller passes a literal string.

Change-Id: I1412b77223fe01a70dda4c23558983f84dfb07d4
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12114
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
tests/lib/conds/conds-triggers.cpp
tests/lib/conds/utils.cpp
tests/lib/conds/utils.hpp
This page took 0.026029 seconds and 4 git commands to generate.