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:
@@ -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
|
||||
)
|
||||
|
Reference in New Issue
Block a user