X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a5a83677555023d476401bab5809a1107222c74..ff7b1510ea7f7855091df83d75a44415dc1cba18:/src/common/fileconf.cpp diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 24d10b9833..5688b9aa41 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -85,6 +85,9 @@ wxString wxFileConfig::GetGlobalDir() #ifdef __UNIX__ strDir = "/etc/"; + #elif defined(__WXSTUBS__) + // TODO + wxASSERT( TRUE ) ; #else // Windows #ifndef _MAX_PATH #define _MAX_PATH 512 @@ -1311,6 +1314,9 @@ wxString FilterIn(const wxString& str) // quote the string before writing it to file wxString FilterOut(const wxString& str) { + if(str.IsEmpty()) + return str; + wxString strResult; strResult.Alloc(str.Len());