Skip to content

Commit

Permalink
Corrected with PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: ivanpauno <[email protected]>
  • Loading branch information
ivanpauno committed Mar 26, 2019
1 parent 11ee470 commit 0e9f496
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rmw_fastrtps_shared_cpp/src/rmw_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ __rmw_publisher_get_actual_qos(
if (fastrtps_pub == nullptr) {
return RMW_RET_ERROR;
}
const eprosima::fastrtps::PublisherAttributes attributes =
const eprosima::fastrtps::PublisherAttributes & attributes =
fastrtps_pub->getAttributes();

switch (attributes.topic.historyQos.kind) {
Expand All @@ -129,7 +129,7 @@ __rmw_publisher_get_actual_qos(
qos->history = RMW_QOS_POLICY_HISTORY_KEEP_ALL;
break;
default:
qos->history = RMW_QOS_POLICY_HISTORY_SYSTEM_DEFAULT;
qos->history = RMW_QOS_POLICY_HISTORY_UNKNOWN;
break;
}
switch (attributes.qos.m_durability.kind) {
Expand All @@ -140,7 +140,7 @@ __rmw_publisher_get_actual_qos(
qos->durability = RMW_QOS_POLICY_DURABILITY_VOLATILE;
break;
default:
qos->durability = RMW_QOS_POLICY_DURABILITY_SYSTEM_DEFAULT;
qos->durability = RMW_QOS_POLICY_DURABILITY_UNKNOWN;
break;
}
switch (attributes.qos.m_reliability.kind) {
Expand All @@ -151,7 +151,7 @@ __rmw_publisher_get_actual_qos(
qos->reliability = RMW_QOS_POLICY_RELIABILITY_RELIABLE;
break;
default:
qos->reliability = RMW_QOS_POLICY_RELIABILITY_SYSTEM_DEFAULT;
qos->reliability = RMW_QOS_POLICY_RELIABILITY_UNKNOWN;
break;
}
qos->depth = static_cast<size_t>(attributes.topic.historyQos.depth);
Expand Down

0 comments on commit 0e9f496

Please sign in to comment.