Use wxString::empty() instead of comparison to wxEmptyString

This commit is contained in:
Paul Cornett
2017-05-29 00:05:52 -07:00
parent d16afbd3c1
commit c1f2bbce5d
10 changed files with 29 additions and 29 deletions

View File

@@ -936,7 +936,7 @@ bool wxGenericDirCtrl::ExpandPath(const wxString& path)
{
data = GetItemData(childId);
if (data && data->m_path != wxEmptyString && !data->m_isDir)
if (data && !data->m_path.empty() && !data->m_isDir)
{
m_treeCtrl->SelectItem(childId);
m_treeCtrl->EnsureVisible(childId);