File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
rmw_connextdds_common/src/common Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -427,16 +427,15 @@ rmw_connextdds_get_readerwriter_qos(
427427 // Micro does not support this policy, so the value will always be NULL.
428428#if RMW_CONNEXT_DDS_API == RMW_CONNEXT_DDS_API_MICRO
429429 assert (nullptr == lifespan);
430- #endif /* RMW_CONNEXT_DDS_API == RMW_CONNEXT_DDS_API_MICRO */
430+ #else /* RMW_CONNEXT_DDS_API == RMW_CONNEXT_DDS_API_PRO */
431431 if (lifespan != nullptr &&
432432 !rmw_time_equal (qos_policies->lifespan , RMW_DURATION_UNSPECIFIED))
433433 {
434434 // Guard access to type since it's not defined by Micro (only forward declared
435435 // by rmw_connextdds/dds_api_rtime.hpp)
436- #if RMW_CONNEXT_DDS_API == RMW_CONNEXT_DDS_API_PRO
437436 lifespan->duration = rmw_time_to_dds_duration (qos_policies->lifespan );
438- #endif /* RMW_CONNEXT_DDS_API == RMW_CONNEXT_DDS_API_PRO */
439437 }
438+ #endif /* RMW_CONNEXT_DDS_API == RMW_CONNEXT_DDS_API_PRO */
440439
441440 return RMW_RET_OK;
442441}
You can’t perform that action at this time.
0 commit comments