summaryrefslogtreecommitdiff
path: root/cpp/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/tests')
-rw-r--r--cpp/tests/BrokerChannelTest.cpp2
-rw-r--r--cpp/tests/InProcessBroker.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpp/tests/BrokerChannelTest.cpp b/cpp/tests/BrokerChannelTest.cpp
index 9216ae4672..8717be07b5 100644
--- a/cpp/tests/BrokerChannelTest.cpp
+++ b/cpp/tests/BrokerChannelTest.cpp
@@ -146,7 +146,7 @@ class BrokerChannelTest : public CppUnit::TestCase
broker(Broker::create()),
connection(&handler, *broker)
{
- connection.initiated(new ProtocolInitiation());
+ connection.initiated(ProtocolInitiation());
}
diff --git a/cpp/tests/InProcessBroker.h b/cpp/tests/InProcessBroker.h
index 833b821d11..e2b426347b 100644
--- a/cpp/tests/InProcessBroker.h
+++ b/cpp/tests/InProcessBroker.h
@@ -85,7 +85,7 @@ class InProcessBroker : public client::Connector {
~InProcessBroker() { broker->shutdown(); }
void connect(const std::string& /*host*/, int /*port*/) {}
- void init() { brokerConnection.initiated(&protocolInit); }
+ void init() { brokerConnection.initiated(protocolInit); }
void close() {}
/** Client's input handler. */