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: store triggers in a vector
[babeltrace.git]
/
tests
/
lib
/
conds
/
utils.cpp
diff --git
a/tests/lib/conds/utils.cpp
b/tests/lib/conds/utils.cpp
index d393c618a0689bf8fd98efa6a3359f00a7cf41e0..f1d9969e1ed24f2f8806349aa07b47c826866d94 100644
(file)
--- a/
tests/lib/conds/utils.cpp
+++ b/
tests/lib/conds/utils.cpp
@@
-34,11
+34,11
@@
SimpleCondTrigger::SimpleCondTrigger(std::function<void()> func, const Type type
namespace {
namespace {
-void listCondTriggers(const CondTriggers condTriggers) noexcept
+void listCondTriggers(const CondTriggers
&
condTriggers) noexcept
{
auto condTriggerArray = nlohmann::json::array();
{
auto condTriggerArray = nlohmann::json::array();
- for (const auto condTrigger : condTriggers) {
+ for (const auto
&
condTrigger : condTriggers) {
condTriggerArray.push_back(nlohmann::json {
{"cond-id", condTrigger->condId()},
{"name", condTrigger->name()},
condTriggerArray.push_back(nlohmann::json {
{"cond-id", condTrigger->condId()},
{"name", condTrigger->name()},
@@
-50,7
+50,7
@@
void listCondTriggers(const CondTriggers condTriggers) noexcept
} /* namespace */
} /* namespace */
-void condMain(const int argc, const char ** const argv, const CondTriggers condTriggers) noexcept
+void condMain(const int argc, const char ** const argv, const CondTriggers
&
condTriggers) noexcept
{
BT_ASSERT(argc >= 2);
{
BT_ASSERT(argc >= 2);
This page took
0.023047 seconds
and
4
git commands to generate.