From 413b945e43472d89d1f42c1ddfc3a336b9e14fe1 Mon Sep 17 00:00:00 2001 From: Tomoya Fujita Date: Fri, 11 Oct 2024 08:43:46 -0700 Subject: [PATCH] introduce RMW_EVENT_TYPE_MAX in rmw_event_type_t. Signed-off-by: Tomoya Fujita --- .../include/rmw_connextdds/rmw_waitset_std.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rmw_connextdds_common/include/rmw_connextdds/rmw_waitset_std.hpp b/rmw_connextdds_common/include/rmw_connextdds/rmw_waitset_std.hpp index 45bcedf6..d9ad9601 100644 --- a/rmw_connextdds_common/include/rmw_connextdds/rmw_waitset_std.hpp +++ b/rmw_connextdds_common/include/rmw_connextdds/rmw_waitset_std.hpp @@ -408,9 +408,9 @@ class RMW_Connext_StatusCondition : public RMW_Connext_Condition protected: DDS_StatusCondition * scond; std::mutex new_event_mutex_; - rmw_event_callback_t new_event_cb_[RMW_EVENT_INVALID] = {}; - const void * user_data_[RMW_EVENT_INVALID] = {}; - uint64_t unread_events_count_[RMW_EVENT_INVALID] = {0}; + rmw_event_callback_t new_event_cb_[RMW_EVENT_TYPE_MAX] = {}; + const void * user_data_[RMW_EVENT_TYPE_MAX] = {}; + uint64_t unread_events_count_[RMW_EVENT_TYPE_MAX] = {0}; bool triggered_inconsistent_topic{false};