mirror of
https://github.com/ValveSoftware/GameNetworkingSockets.git
synced 2026-05-29 16:20:34 +00:00
Don't use make_unique, we want to support cxx11 as long as we can
This commit is contained in:
@@ -1392,7 +1392,7 @@ void CSteamNetworkingICESession::GatherInterfaces()
|
||||
// the list was empty).
|
||||
for ( const LocalAddress_t &addr: vecAddrs )
|
||||
{
|
||||
std::unique_ptr<ICESessionInterface> pIntf = std::make_unique<ICESessionInterface>( *this, uNextPriority, addr.m_nPrefixLen );
|
||||
std::unique_ptr<ICESessionInterface> pIntf( new ICESessionInterface( *this, uNextPriority, addr.m_nPrefixLen ) );
|
||||
SteamDatagramErrMsg errMsg;
|
||||
SteamNetworkingIPAddr bindAddr = addr.m_addr;
|
||||
pIntf->m_pSocket = OpenRawUDPSocket( CRecvPacketCallback( CSteamNetworkingICESession::StaticPacketReceived, pIntf.get() ), errMsg, &bindAddr, nullptr );
|
||||
|
||||
Reference in New Issue
Block a user