Provide an idiomatic c++ interface for action lists
[lttng-tools.git] / src / bin / lttng / commands / list_triggers.cpp
index c9c6c265de053fb66cc3123c338ca6efa42057ac..03e567c86d449c317f91df4fd1dd67de04dc014a 100644 (file)
@@ -1024,11 +1024,10 @@ static void print_one_trigger(const struct lttng_trigger *trigger)
        action = lttng_trigger_get_const_action(trigger);
        action_type = lttng_action_get_type(action);
        if (action_type == LTTNG_ACTION_TYPE_LIST) {
-               const struct lttng_action *subaction;
                uint64_t action_path_index = 0;
 
                MSG("  actions:");
-               for_each_action_const (subaction, action) {
+               for (auto subaction : lttng::ctl::const_action_list_view(action)) {
                        _MSG("    ");
                        print_one_action(trigger, subaction, &action_path_index, 1);
                        action_path_index++;
This page took 0.022747 seconds and 4 git commands to generate.