]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/sckaddr.cpp
added wxString ctor from std::string (inside #ifdef wxUSE_STD_STRING); removed pragma...
[wxWidgets.git] / src / common / sckaddr.cpp
index 2e78e0e2a0a195c40adbcaf833d530bdaae13e79..37ad7cf8b1a7ea89aa8c60089d307061d01298e5 100644 (file)
@@ -141,7 +141,7 @@ wxIPV4address::~wxIPV4address()
 bool wxIPV4address::Hostname(const wxString& name)
 {
   // Some people are sometimes fool.
-  if (name == wxT(""))
+  if (name.empty())
   {
     wxLogWarning( _("Trying to solve a NULL hostname: giving up") );
     return false;
@@ -245,7 +245,7 @@ wxIPV6address::~wxIPV6address()
 
 bool wxIPV6address::Hostname(const wxString& name)
 {
-  if (name == wxT(""))
+  if (name.empty())
   {
     wxLogWarning( _("Trying to solve a NULL hostname: giving up") );
     return false;