From 01b43e030249709cdd57d6e91fda23d26e773139 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 11 May 1999 14:41:13 +0000 Subject: [PATCH] spaces around '=' are not needed any more in config files git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fileconf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 5e9762390c..b41119bb0a 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -341,7 +341,7 @@ void wxFileConfig::Parse(wxTextFile& file, bool bLocal) } else { // a key const wxChar *pEnd = pStart; - while ( !wxIsspace(*pEnd) ) { + while ( *pEnd != _T('=') && !wxIsspace(*pEnd) ) { if ( *pEnd == _T('\\') ) { // next character may be space or not - still take it because it's // quoted @@ -1277,7 +1277,7 @@ void ConfigEntry::SetValue(const wxString& strValue, bool bUser) if ( bUser ) { wxString strVal = FilterOutValue(strValue); wxString strLine; - strLine << FilterOutEntryName(m_strName) << _T(" = ") << strVal; + strLine << FilterOutEntryName(m_strName) << _T('=') << strVal; if ( m_pLine != NULL ) { // entry was read from the local config file, just modify the line -- 2.47.2