Provide an idiomatic c++ interface for action lists
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-events.cpp
index ab0fa84ce0d197dad29eb9c351acbb853feaa89f..aaf24b3f0f404391cdce74a31fa0a233e63aa1c0 100644 (file)
@@ -2503,7 +2503,6 @@ static bool is_trigger_action_notify(const struct lttng_trigger *trigger)
 {
        bool is_notify = false;
        const struct lttng_action *action = lttng_trigger_get_const_action(trigger);
-       const struct lttng_action *inner_action;
        enum lttng_action_type action_type;
 
        LTTNG_ASSERT(action);
@@ -2515,7 +2514,7 @@ static bool is_trigger_action_notify(const struct lttng_trigger *trigger)
                goto end;
        }
 
-       for_each_action_const (inner_action, action) {
+       for (auto inner_action : lttng::ctl::const_action_list_view(action)) {
                if (lttng_action_get_type(inner_action) == LTTNG_ACTION_TYPE_NOTIFY) {
                        is_notify = true;
                        goto end;
This page took 0.023823 seconds and 4 git commands to generate.