Added zillions of #if wxUSE_XXX
Removed cmndlgs usage of wxSizer and constraints Changed occurences of wxConv_xxx to wxConvXxxx and changed some wxConvLibc to wxConvCurrent Added Unicode tests to typetests (not finished) Compile fix for wxString in Unicode mode - we have to use the "experimental" printf then, I guess. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1076,8 +1076,8 @@ bool wxDirExists(const wxString& dir)
|
||||
// does the path exists? (may have or not '/' or '\\' at the end)
|
||||
bool wxPathExists(const wxChar *pszPathName)
|
||||
{
|
||||
// Windows API returns -1 from stat for "c:\dir\" if "c:\dir" exists
|
||||
// OTOH, we should change "d:" to "d:\" and leave "\" as is.
|
||||
/* Windows API returns -1 from stat for "c:\dir\" if "c:\dir" exists
|
||||
* OTOH, we should change "d:" to "d:\" and leave "\" as is. */
|
||||
wxString strPath(pszPathName);
|
||||
if ( wxEndsWithPathSeparator(pszPathName) && pszPathName[1] != _T('\0') )
|
||||
strPath.Last() = _T('\0');
|
||||
@@ -1444,7 +1444,7 @@ wxChar *wxGetWorkingDirectory(wxChar *buf, int sz)
|
||||
}
|
||||
#if wxUSE_UNICODE
|
||||
else {
|
||||
wxConv_file.MB2WC(buf, cbuf, sz);
|
||||
wxConvFile.MB2WC(buf, cbuf, sz);
|
||||
delete [] cbuf;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user