lib/net: Use std::string directly instead of String typedef

This commit is contained in:
Povilas Kanapickas
2020-05-30 14:41:37 +03:00
parent dbd10820c3
commit b93bcccf57
8 changed files with 31 additions and 44 deletions

View File

@@ -96,7 +96,7 @@ NetworkAddress::NetworkAddress(const NetworkAddress& addr) :
// do nothing
}
NetworkAddress::NetworkAddress(const String& hostname, int port) :
NetworkAddress::NetworkAddress(const std::string& hostname, int port) :
m_address(NULL),
m_hostname(hostname),
m_port(port)
@@ -196,8 +196,7 @@ NetworkAddress::getPort() const
return m_port;
}
String
NetworkAddress::getHostname() const
std::string NetworkAddress::getHostname() const
{
return m_hostname;
}