We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd51363 commit d909f9bCopy full SHA for d909f9b
image_transport/src/publisher.cpp
@@ -212,7 +212,7 @@ void Publisher::publish(sensor_msgs::msg::Image::UniquePtr message) const
212
}
213
214
std::vector<std::shared_ptr<PublisherPlugin>> pubs_take_reference;
215
- std::optional<std::shared_ptr<PublisherPlugin>> pub_takes_ownership = std::nullopt;
+ std::optional<std::shared_ptr<PublisherPlugin>> pub_takes_ownership{std::nullopt};
216
217
for (const auto & pub : impl_->publishers_) {
218
if (pub->getNumSubscribers() > 0) {
0 commit comments