Пример #1
0
IceInternal::EndpointFactoryPtr
IceSSL::EndpointFactoryI::clone(const IceInternal::ProtocolInstancePtr& inst,
                                const IceInternal::EndpointFactoryPtr& delegate) const
{
    InstancePtr instance = new Instance(_instance->engine(), inst->type(), inst->protocol());
    return new EndpointFactoryI(instance, delegate ? delegate : _delegate->clone(instance, 0));
}
Пример #2
0
IceInternal::EndpointFactoryPtr
IceSSL::EndpointFactoryI::clone(const IceInternal::ProtocolInstancePtr& instance) const
{
    return new EndpointFactoryI(new Instance(_instance->engine(), instance->type(), instance->protocol()));
}