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

@@ -431,7 +431,7 @@ wxChar* wxGetUserHome (
char *wxBuffer = new wxChar[256];
#ifndef __EMX__
if (sUser1 != _T(""))
if (!sUser1.empty())
{
wxChar zTmp[64];
@@ -453,7 +453,7 @@ wxChar* wxGetUserHome (
}
}
#endif
if (sUser1 == _T(""))
if (sUser1.empty())
{
if ((zHome = wxGetenv(_T("HOME"))) != NULL)
{
@@ -468,13 +468,6 @@ wxChar* wxGetUserHome (
return NULL; // No home known!
}
bool wxDirExists(
const wxString& rDir
)
{
return (::DosSetCurrentDir(WXSTRINGCAST rDir));
}
wxString WXDLLEXPORT wxPMErrorToStr(
ERRORID vError
)