// headers
// ----------------------------------------------------------------------------
#ifdef __GNUG__
- #pragma implementation "config.h"
+ #pragma implementation "confbase.h"
#endif
#include "wx/wxprec.h"
#include <wx/file.h>
#include <wx/log.h>
#include <wx/textfile.h>
-#include <wx/config.h>
+#include <wx/confbase.h>
// we must include (one of) these files for wxConfigBase::Create
#if defined(__WXMSW__) && defined(wxCONFIG_WIN32_NATIVE)
wxString strPath = strEntry.Before(wxCONFIG_PATH_SEPARATOR);
// special case of "/keyname" when there is nothing before "/"
- if ( (!strPath.IsEmpty()) && strEntry[0] == wxCONFIG_PATH_SEPARATOR )
+ if ( strPath.IsEmpty() && ((!strEntry.IsEmpty()) && strEntry[0] == wxCONFIG_PATH_SEPARATOR ))
strPath = wxCONFIG_PATH_SEPARATOR;
if ( !strPath.IsEmpty() ) {
#endif
};
- uint m;
- for ( uint n = 0; n < str.Len(); n++ ) {
+ size_t m;
+ for ( size_t n = 0; n < str.Len(); n++ ) {
switch ( str[n] ) {
#ifdef __WXMSW__
case '%':