Fixed strange situation when we had wxPathExists and wxDirExists with the same finctionality. Using wxPathExists instead wxFileExists (fixes bug #865628). Minor source cleaning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-03-17 17:46:32 +00:00
parent fbb7dfffb0
commit 27b2dd53f6
16 changed files with 92 additions and 111 deletions

View File

@@ -40,7 +40,7 @@ void NodeInfo::Read(const wxString& filename, wxPathList& list)
NodeClass.Empty();
wxString path = list.FindValidPath(filename);
if (path.IsEmpty()) return;
if (path.empty()) return;
wxTextFile tf;
tf.Open(path);
@@ -98,9 +98,9 @@ void NodeInfo::Read(const wxString& filename, wxPathList& list)
}
}
if (!nd.IsEmpty()) NodeClass = nd;
if (!cht.IsEmpty()) ChildType = cht;
if (!!tp) Type = tp;
if (!nd.empty()) NodeClass = nd;
if (!cht.empty()) ChildType = cht;
if (!tp.empty()) Type = tp;
if (icn != -1) Icon = icn;
Abstract = ab;
}
@@ -153,7 +153,7 @@ void NodesDb::Load()
void NodesDb::LoadDir(const wxString& path)
{
if (!wxDirExists(path)) return;
if (!wxPathExists(path)) return;
wxDir dir(path);
wxString filename;