Skip to content

Commit 03b70a4

Browse files
committed
remove unnecessary cast
1 parent 988104f commit 03b70a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rviz_default_plugins/src/rviz_default_plugins/displays/image/image_display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ void ImageDisplay::subscribe()
189189
// are automatically converted.
190190
subscription_ = image_transport_.subscribe(
191191
rviz_default_plugins::displays::getBaseTopicFromTopic(topic_property_->getTopicStd()),
192-
(uint32_t)qos_profile.get_rmw_qos_profile().depth, // TODO(mjforan) try without cast
192+
qos_profile.get_rmw_qos_profile().depth,
193193
&ImageDisplay::incomingMessage, this,
194194
new image_transport::TransportHints(
195195
node.get(), getTransportFromTopic(topic_property_->getStdString()), "image_transport"));

0 commit comments

Comments
 (0)