diff --git a/nodelet_topic_tools/include/nodelet_topic_tools/nodelet_lazy.h b/nodelet_topic_tools/include/nodelet_topic_tools/nodelet_lazy.h index a7bb7db9..5d39bbe1 100644 --- a/nodelet_topic_tools/include/nodelet_topic_tools/nodelet_lazy.h +++ b/nodelet_topic_tools/include/nodelet_topic_tools/nodelet_lazy.h @@ -232,7 +232,7 @@ class NodeletLazy: public nodelet::Nodelet */ template ros::Publisher advertise(ros::NodeHandle& nh, - std::string topic, int queue_size, bool latch=false) + const std::string& topic, int queue_size, bool latch=false) { boost::mutex::scoped_lock lock(connection_mutex_); ros::SubscriberStatusCallback connect_cb