boilerplate reduction

This commit is contained in:
Michael Davidsaver
2017-06-08 16:23:15 +02:00
parent d0915581b4
commit 33e842db2e
2 changed files with 21 additions and 72 deletions

View File

@@ -2909,9 +2909,8 @@ ChannelRPCRequester::shared_pointer ServerChannelRPCRequesterImpl::create(
{
// TODO use std::make_shared
std::tr1::shared_ptr<ServerChannelRPCRequesterImpl> tp(new ServerChannelRPCRequesterImpl(context, channel, ioid, transport));
ChannelRPCRequester::shared_pointer thisPointer = tp;
static_cast<ServerChannelRPCRequesterImpl*>(thisPointer.get())->activate(pvRequest);
return thisPointer;
tp->activate(pvRequest);
return tp;
}
void ServerChannelRPCRequesterImpl::activate(PVStructure::shared_pointer const & pvRequest)