]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckaddr.cpp
Applied some of patch [ 650957 ] wxWinCE diff-0.0.4
[wxWidgets.git] / src / common / sckaddr.cpp
index ff8739c79dc340adbff69ad42faf1d16e40959da..b75ac6efb58944d1f24182fe48221774694bb062 100644 (file)
@@ -136,7 +136,7 @@ bool wxIPV4address::Hostname(unsigned long addr)
   if (rv)
       m_origHostname = Hostname();
   else
-      m_origHostname = "";
+      m_origHostname = wxEmptyString;
   return rv;
 }
 
@@ -166,7 +166,7 @@ wxString wxIPV4address::Hostname()
 
    hostname[0] = 0;
    GAddress_INET_GetHostName(m_address, hostname, 1024);
-   return wxString(hostname);
+   return wxString::FromAscii(hostname);
 }
 
 unsigned short wxIPV4address::Service()
@@ -268,7 +268,8 @@ wxString wxUNIXaddress::Filename()
 
   path[0] = 0;
   GAddress_UNIX_GetPath(m_address, path, 1024);
-  return wxString(path);
+  
+  return wxString::FromAscii(path);
 }
 
 #endif // __UNIX__