Skip to content

Commit 5d7eebc

Browse files
committed
remove unnecessary cast
1 parent b658026 commit 5d7eebc

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
@@ -191,7 +191,7 @@ void ImageDisplay::subscribe()
191191
// are automatically converted.
192192
subscription_ = image_transport_.subscribe(
193193
rviz_default_plugins::displays::getBaseTopicFromTopic(topic_property_->getTopicStd()),
194-
(uint32_t)qos_profile.get_rmw_qos_profile().depth, // TODO(mjforan) try without cast
194+
qos_profile.get_rmw_qos_profile().depth,
195195
&ImageDisplay::incomingMessage, this,
196196
new image_transport::TransportHints(
197197
node.get(), getTransportFromTopic(topic_property_->getStdString()), "image_transport"));

0 commit comments

Comments
 (0)