X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=tests%2Flib%2Fconds%2Fconds-triggers.cpp;fp=tests%2Flib%2Fconds%2Fconds-triggers.cpp;h=1a463511b0fcff540748ff98ea82882ee41cdb1b;hp=c3ce48fa42b4aa8c8997283dd4a03f9b0fc3425e;hb=4ad4365795e89089c88b28c483bb19fe77091632;hpb=d8451d46404b3f4119808d29d21b8ffa10130e1f diff --git a/tests/lib/conds/conds-triggers.cpp b/tests/lib/conds/conds-triggers.cpp index c3ce48fa..1a463511 100644 --- a/tests/lib/conds/conds-triggers.cpp +++ b/tests/lib/conds/conds-triggers.cpp @@ -9,6 +9,7 @@ #include #include "cpp-common/bt2/graph.hpp" +#include "cpp-common/bt2c/c-string-view.hpp" #include "utils.hpp" @@ -19,8 +20,7 @@ namespace { */ template CondTrigger *makeSimpleTrigger(FuncT&& func, const CondTrigger::Type type, - const std::string& condId, - const bt2s::optional& nameSuffix = bt2s::nullopt) + const std::string& condId, const bt2c::CStringView nameSuffix = {}) { return new SimpleCondTrigger {std::forward(func), type, condId, nameSuffix}; } @@ -62,7 +62,7 @@ private: */ CondTrigger *makeRunInCompInitTrigger(OnCompInitFunc func, const CondTrigger::Type type, const std::string& condId, - const bt2s::optional& nameSuffix = bt2s::nullopt) + const bt2c::CStringView nameSuffix = {}) { return new RunInCondTrigger {RunInDelegator::makeOnCompInit(std::move(func)), type, condId, nameSuffix};