git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37005
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// ----------------------------------------------------------------------------
wxConfigPathChanger::wxConfigPathChanger(const wxConfigBase *pContainer,
// ----------------------------------------------------------------------------
wxConfigPathChanger::wxConfigPathChanger(const wxConfigBase *pContainer,
- const wxString& strEntry)
+ const wxString& strEntry)
m_pContainer = (wxConfigBase *)pContainer;
// the path is everything which precedes the last slash
m_pContainer = (wxConfigBase *)pContainer;
// the path is everything which precedes the last slash
{
if ( m_pContainer->GetPath() != strPath )
{
{
if ( m_pContainer->GetPath() != strPath )
{
+ // we do change the path so restore it later
m_bChanged = true;
/* JACS: work around a memory bug that causes an assert
m_bChanged = true;
/* JACS: work around a memory bug that causes an assert
}
else {
// it's a name only, without path - nothing to do
}
else {
// it's a name only, without path - nothing to do
m_strName = strEntry;
}
}
m_strName = strEntry;
}
}