mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-09 16:02:46 +08:00
lib/net: Use std::string directly instead of String typedef
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user