X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=tests%2Flib%2Fconds%2Futils.hpp;fp=tests%2Flib%2Fconds%2Futils.hpp;h=d742d9088f317d9a42405752cc17a2244e185462;hb=4ad4365795e89089c88b28c483bb19fe77091632;hp=c1288c4f52a51f0bedb36c733502210966f8249e;hpb=d8451d46404b3f4119808d29d21b8ffa10130e1f;p=babeltrace.git diff --git a/tests/lib/conds/utils.hpp b/tests/lib/conds/utils.hpp index c1288c4f..d742d908 100644 --- a/tests/lib/conds/utils.hpp +++ b/tests/lib/conds/utils.hpp @@ -13,7 +13,7 @@ #include -#include "cpp-common/bt2s/optional.hpp" +#include "cpp-common/bt2c/c-string-view.hpp" #include "cpp-common/bt2s/span.hpp" #include "../utils/run-in.hpp" @@ -48,7 +48,7 @@ protected: * name of the created condition trigger with name(). */ explicit CondTrigger(Type type, const std::string& condId, - const bt2s::optional& nameSuffix) noexcept; + const bt2c::CStringView nameSuffix) noexcept; public: virtual ~CondTrigger() = default; @@ -88,7 +88,7 @@ class SimpleCondTrigger : public CondTrigger { public: explicit SimpleCondTrigger(std::function func, Type type, const std::string& condId, - const bt2s::optional& nameSuffix = bt2s::nullopt); + const bt2c::CStringView nameSuffix = {}); void operator()() noexcept override { @@ -111,14 +111,14 @@ class RunInCondTrigger : public CondTrigger { public: explicit RunInCondTrigger(RunInT runIn, const Type type, const std::string& condId, - const bt2s::optional& nameSuffix = bt2s::nullopt) : + const bt2c::CStringView nameSuffix = {}) : CondTrigger {type, condId, nameSuffix}, _mRunIn {std::move(runIn)} { } explicit RunInCondTrigger(const Type type, const std::string& condId, - const bt2s::optional& nameSuffix = bt2s::nullopt) : + const bt2c::CStringView nameSuffix = {}) : RunInCondTrigger {RunInT {}, type, condId, nameSuffix} { }