]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckaddr.cpp
Apply parts of patch #1719888 to fix compilation on Mac and with
[wxWidgets.git] / src / common / sckaddr.cpp
index a3b1c1767fbfa3fff895f1dc776200a45e0fe838..81bafbdf717e8216e03dcf125743f53aa3e27380 100644 (file)
@@ -217,8 +217,8 @@ wxString wxIPV4address::IPAddress() const
 
 bool wxIPV4address::operator==(const wxIPV4address& addr) const
 {
-    return Hostname().Cmp(addr.Hostname().c_str()) == 0 &&
-            Service() == addr.Service();
+    return Hostname().Cmp(addr.Hostname()) == 0 &&
+           Service() == addr.Service();
 }
 
 #if wxUSE_IPV6