mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
eliminate unnecessary const_cast
This commit is contained in:
parent
ec5eafafeb
commit
c266575528
7 changed files with 26 additions and 26 deletions
|
@ -43,7 +43,7 @@ namespace i2p
|
|||
void RouterContext::OverrideNTCPAddress (const char * host, int port)
|
||||
{
|
||||
m_RouterInfo.CreateBuffer ();
|
||||
auto address = m_RouterInfo.GetNTCPAddress ();
|
||||
auto address = const_cast<i2p::data::RouterInfo::Address *>(m_RouterInfo.GetNTCPAddress ());
|
||||
if (address)
|
||||
{
|
||||
address->host = boost::asio::ip::address::from_string (host);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue