From: Włodzimierz Skiba Date: Mon, 9 Jan 2006 00:09:43 +0000 (+0000) Subject: Minor reformat. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/57436bb7dbd331de64d05007960aa1fc966f8de9 Minor reformat. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 3a25662db7..c70e7e5a5c 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -308,18 +308,22 @@ wxString wxFileConfig::GetLocalDir() #if defined(__WXMAC__) || defined(__DOS__) // no local dir concept on Mac OS 9 or MS-DOS - return GetGlobalDir() ; + strDir << GetGlobalDir() ; #else wxGetHomeDir(&strDir); -#ifdef __UNIX__ -#ifdef __VMS - if (strDir.Last() != wxT(']')) -#endif - if (strDir.Last() != wxT('/')) strDir << wxT('/'); -#else - if (strDir.Last() != wxT('\\')) strDir << wxT('\\'); -#endif + #ifdef __UNIX__ + if ( + (strDir.Last() != wxT('/')) + #ifdef __VMS + && (strDir.Last() != wxT(']')) + #endif + ) + strDir << wxT('/'); + #else + if (strDir.Last() != wxT('\\')) + strDir << wxT('\\'); + #endif #endif return strDir;