From 62d8611e788de96ca958651a4b443e8274e01ebb Mon Sep 17 00:00:00 2001 From: Tully Foote Date: Fri, 3 Aug 2018 18:01:43 -0700 Subject: [PATCH] Remove references in pointer API calls. --- test/test_subscriber.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_subscriber.cpp b/test/test_subscriber.cpp index 5dbf9df..0be5485 100644 --- a/test/test_subscriber.cpp +++ b/test/test_subscriber.cpp @@ -51,7 +51,7 @@ class Helper : count_(0) {} - void cb(const MsgConstPtr&) + void cb(const MsgConstPtr) { ++count_; } @@ -124,7 +124,7 @@ TEST(Subscriber, subInChain) struct ConstHelper { - void cb(const MsgConstPtr& msg) + void cb(const MsgConstPtr msg) { msg_ = msg; } @@ -134,7 +134,7 @@ struct ConstHelper struct NonConstHelper { - void cb(const MsgPtr& msg) + void cb(const MsgPtr msg) { msg_ = msg; }