Please use `Range Loop` like `for (const auto& action : actionList)`