diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-07-25 09:34:31 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-07-25 09:34:31 +0200 |
commit | 95d4c75a2c46e1e0e3b189c2bb1fe3e4242ef411 (patch) | |
tree | 2f17f00310181867b5814ec5e867eca4a6685341 /documentapi | |
parent | 488d20ae17b0c99f5ed855d8070f8fb8d143999c (diff) |
Consistent syntax.
Diffstat (limited to 'documentapi')
-rw-r--r-- | documentapi/src/tests/policyfactory/policyfactory.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/documentapi/src/tests/policyfactory/policyfactory.cpp b/documentapi/src/tests/policyfactory/policyfactory.cpp index 91ba63ca7f3..f3dadab54ce 100644 --- a/documentapi/src/tests/policyfactory/policyfactory.cpp +++ b/documentapi/src/tests/policyfactory/policyfactory.cpp @@ -82,9 +82,7 @@ Test::Main() mbus::Slobrok slobrok; LoadTypeSet loadTypes; mbus::TestServer - srv(mbus::MessageBusParams() - .addProtocol(mbus::IProtocol::SP(new DocumentProtocol( - loadTypes, repo))), + srv(mbus::MessageBusParams().addProtocol(mbus::IProtocol::SP(new DocumentProtocol(loadTypes, repo))), mbus::RPCNetworkParams().setSlobrokConfig(slobrok.config())); mbus::Receptor handler; mbus::SourceSession::UP src = srv.mb.createSourceSession(mbus::SourceSessionParams().setReplyHandler(handler)); @@ -98,7 +96,7 @@ Test::Main() EXPECT_EQUAL((uint32_t)mbus::ErrorCode::UNKNOWN_POLICY, reply->getError(0).getCode()); mbus::IProtocol * obj = srv.mb.getProtocol(DocumentProtocol::NAME); - DocumentProtocol *protocol = dynamic_cast<DocumentProtocol*>(obj); + DocumentProtocol * protocol = dynamic_cast<DocumentProtocol*>(obj); ASSERT_TRUE(protocol != NULL); protocol->putRoutingPolicyFactory("MyPolicy", IRoutingPolicyFactory::SP(new MyFactory())); |