Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Dec 3, 2024
1 parent bf15b01 commit 09e6b40
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 36 deletions.
33 changes: 6 additions & 27 deletions cpp/src/Ice/UdpEndpointI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,8 @@ IceInternal::UdpEndpointI::compress(bool compress) const
}
else
{
return make_shared<UdpEndpointI>(
_instance,
_host,
_port,
_sourceAddr,
_mcastInterface,
_mcastTtl,
_connectionId,
compress);
return make_shared<
UdpEndpointI>(_instance, _host, _port, _sourceAddr, _mcastInterface, _mcastTtl, _connectionId, compress);
}
}

Expand Down Expand Up @@ -184,15 +177,8 @@ IceInternal::UdpEndpointI::endpoint(const UdpTransceiverPtr& transceiver) const
}
else
{
return make_shared<UdpEndpointI>(
_instance,
_host,
port,
_sourceAddr,
_mcastInterface,
_mcastTtl,
_connectionId,
_compress);
return make_shared<
UdpEndpointI>(_instance, _host, port, _sourceAddr, _mcastInterface, _mcastTtl, _connectionId, _compress);
}
}

Expand Down Expand Up @@ -445,15 +431,8 @@ IceInternal::UdpEndpointI::createConnector(const Address& address, const Network
IPEndpointIPtr
IceInternal::UdpEndpointI::createEndpoint(const string& host, int port, const string& connectionId) const
{
return make_shared<UdpEndpointI>(
_instance,
host,
port,
_sourceAddr,
_mcastInterface,
_mcastTtl,
connectionId,
_compress);
return make_shared<
UdpEndpointI>(_instance, host, port, _sourceAddr, _mcastInterface, _mcastTtl, connectionId, _compress);
}

IceInternal::UdpEndpointFactory::UdpEndpointFactory(const ProtocolInstancePtr& instance) : _instance(instance) {}
Expand Down
7 changes: 1 addition & 6 deletions cpp/src/Ice/UdpTransceiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,7 @@ namespace IceInternal

public:
UdpTransceiver(const ProtocolInstancePtr&, const Address&, const Address&, const std::string&, int);
UdpTransceiver(
const UdpEndpointIPtr&,
const ProtocolInstancePtr&,
const std::string&,
int,
const std::string&);
UdpTransceiver(const UdpEndpointIPtr&, const ProtocolInstancePtr&, const std::string&, int, const std::string&);

~UdpTransceiver() final;

Expand Down
4 changes: 1 addition & 3 deletions cpp/test/Ice/info/AllTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,7 @@ allTests(Test::TestHelper* helper)
}

int port = helper->getTestPort();
TestIntfPrx testIntf(
communicator,
"test:" + helper->getTestEndpoint() + ":" + helper->getTestEndpoint("udp"));
TestIntfPrx testIntf(communicator, "test:" + helper->getTestEndpoint() + ":" + helper->getTestEndpoint("udp"));

cout << "test connection endpoint information... " << flush;
{
Expand Down

0 comments on commit 09e6b40

Please sign in to comment.