projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests/lib/conds: change `nameSuffix` type to `bt2c::CStringView`
[babeltrace.git]
/
tests
/
lib
/
conds
/
utils.cpp
diff --git
a/tests/lib/conds/utils.cpp
b/tests/lib/conds/utils.cpp
index 9bf5450fe5bf56ab461c54e80ccab1439edc5b47..d393c618a0689bf8fd98efa6a3359f00a7cf41e0 100644
(file)
--- a/
tests/lib/conds/utils.cpp
+++ b/
tests/lib/conds/utils.cpp
@@
-17,17
+17,16
@@
#include "utils.hpp"
CondTrigger::CondTrigger(const Type type, const std::string& condId,
#include "utils.hpp"
CondTrigger::CondTrigger(const Type type, const std::string& condId,
- const bt2
s::optional<std::string>&
nameSuffix) noexcept :
+ const bt2
c::CStringView
nameSuffix) noexcept :
_mType {type},
_mCondId {fmt::format("{}:{}", type == Type::PRE ? "pre" : "post", condId)},
_mType {type},
_mCondId {fmt::format("{}:{}", type == Type::PRE ? "pre" : "post", condId)},
- _mName {
- fmt::format("{}{}{}", condId, nameSuffix ? "-" : "", nameSuffix ? nameSuffix->data() : "")}
+ _mName {fmt::format("{}{}{}", condId, nameSuffix ? "-" : "", nameSuffix ? nameSuffix : "")}
{
}
SimpleCondTrigger::SimpleCondTrigger(std::function<void()> func, const Type type,
const std::string& condId,
{
}
SimpleCondTrigger::SimpleCondTrigger(std::function<void()> func, const Type type,
const std::string& condId,
- const bt2
s::optional<std::string>&
nameSuffix) :
+ const bt2
c::CStringView
nameSuffix) :
CondTrigger {type, condId, nameSuffix},
_mFunc {std::move(func)}
{
CondTrigger {type, condId, nameSuffix},
_mFunc {std::move(func)}
{
This page took
0.023232 seconds
and
4
git commands to generate.