Skip to content

Commit d909f9b

Browse files
authored
Removed warning (#312)
Signed-off-by: Alejandro Hernández Cordero <ahcorde@gmail.com>
1 parent fd51363 commit d909f9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image_transport/src/publisher.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void Publisher::publish(sensor_msgs::msg::Image::UniquePtr message) const
212212
}
213213

214214
std::vector<std::shared_ptr<PublisherPlugin>> pubs_take_reference;
215-
std::optional<std::shared_ptr<PublisherPlugin>> pub_takes_ownership = std::nullopt;
215+
std::optional<std::shared_ptr<PublisherPlugin>> pub_takes_ownership{std::nullopt};
216216

217217
for (const auto & pub : impl_->publishers_) {
218218
if (pub->getNumSubscribers() > 0) {

0 commit comments

Comments
 (0)