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
This commit is contained in:
Vadim Zeitlin 1999-05-11 14:41:13 +00:00
parent ccc585e571
commit 01b43e0302

View File

@ -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