Last .empty() string source cleaning before 2.5.4.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user