Skip to content

Commit 00198a6

Browse files
Move publisher handle argument to rcl_publish tracepoint
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
1 parent 25c2238 commit 00198a6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

rclcpp/include/rclcpp/publisher.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,7 @@ class Publisher : public PublisherBase
438438
void
439439
do_inter_process_publish(const ROSMessageType & msg)
440440
{
441-
TRACEPOINT(
442-
rclcpp_publish,
443-
static_cast<const void *>(publisher_handle_.get()),
444-
static_cast<const void *>(&msg));
441+
TRACEPOINT(rclcpp_publish, static_cast<const void *>(&msg));
445442
auto status = rcl_publish(publisher_handle_.get(), &msg, nullptr);
446443

447444
if (RCL_RET_PUBLISHER_INVALID == status) {

0 commit comments

Comments
 (0)