File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
rclcpp/include/rclcpp/experimental Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ class ActionClientIntraProcess : public ActionClientIntraProcessBase
182182 auto data = std::move (feedback_buffer_->consume ());
183183 return std::static_pointer_cast<void >(data);
184184 } else if (is_status_ready_) {
185- auto data = std::move ( status_buffer_->consume () );
185+ auto data = status_buffer_->consume ();
186186 return std::static_pointer_cast<void >(data);
187187 } else {
188188 throw std::runtime_error (" Taking data from intra-process action client but nothing is ready" );
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
6262 *
6363 * \param request the element to be stored in the ring buffer
6464 */
65- void enqueue (BufferT request)
65+ void enqueue (BufferT request) override
6666 {
6767 std::lock_guard<std::mutex> lock (mutex_);
6868
@@ -82,7 +82,7 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
8282 *
8383 * \return the element that is being removed from the ring buffer
8484 */
85- BufferT dequeue ()
85+ BufferT dequeue () override
8686 {
8787 std::lock_guard<std::mutex> lock (mutex_);
8888
@@ -128,7 +128,7 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
128128 *
129129 * \return `true` if there is data and `false` otherwise
130130 */
131- inline bool has_data () const
131+ inline bool has_data () const override
132132 {
133133 std::lock_guard<std::mutex> lock (mutex_);
134134 return has_data_ ();
@@ -147,7 +147,7 @@ class RingBufferImplementation : public BufferImplementationBase<BufferT>
147147 return is_full_ ();
148148 }
149149
150- void clear () {}
150+ void clear () override {}
151151
152152private:
153153 // / Get the next index value for the ring buffer
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ class ClientIntraProcess : public ClientIntraProcessBase
7676 virtual ~ClientIntraProcess () = default ;
7777
7878 bool
79- is_ready (rcl_wait_set_t * wait_set)
79+ is_ready (rcl_wait_set_t * wait_set) override
8080 {
8181 (void ) wait_set;
8282 return buffer_->has_data ();
@@ -97,7 +97,7 @@ class ClientIntraProcess : public ClientIntraProcessBase
9797 return std::static_pointer_cast<void >(data);
9898 }
9999
100- void execute (std::shared_ptr<void > & data)
100+ void execute (std::shared_ptr<void > & data) override
101101 {
102102 if (!data) {
103103 throw std::runtime_error (" 'data' is empty" );
You can’t perform that action at this time.
0 commit comments