git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38579
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxFileConfigGroup *m_pRootGroup, // the top (unnamed) group
*m_pCurrentGroup; // the current group
wxFileConfigGroup *m_pRootGroup, // the top (unnamed) group
*m_pCurrentGroup; // the current group
#ifdef __UNIX__
int m_umask; // the umask to use for file creation
#ifdef __UNIX__
int m_umask; // the umask to use for file creation
{
wxTextFile fileGlobal(m_strGlobalFile);
{
wxTextFile fileGlobal(m_strGlobalFile);
- if ( fileGlobal.Open(m_conv/*ignored in ANSI build*/) )
+ if ( fileGlobal.Open(*m_conv/*ignored in ANSI build*/) )
{
Parse(fileGlobal, false /* global */);
SetRootPath();
{
Parse(fileGlobal, false /* global */);
SetRootPath();
if ( !m_strLocalFile.empty() && wxFile::Exists(m_strLocalFile) )
{
wxTextFile fileLocal(m_strLocalFile);
if ( !m_strLocalFile.empty() && wxFile::Exists(m_strLocalFile) )
{
wxTextFile fileLocal(m_strLocalFile);
- if ( fileLocal.Open(m_conv/*ignored in ANSI build*/) )
+ if ( fileLocal.Open(*m_conv/*ignored in ANSI build*/) )
{
Parse(fileLocal, true /* local */);
SetRootPath();
{
Parse(fileLocal, true /* local */);
SetRootPath();
strLocal, strGlobal,
style),
m_strLocalFile(strLocal), m_strGlobalFile(strGlobal),
strLocal, strGlobal,
style),
m_strLocalFile(strLocal), m_strGlobalFile(strGlobal),
{
// Make up names for files if empty
if ( m_strLocalFile.empty() && (style & wxCONFIG_USE_LOCAL_FILE) )
{
// Make up names for files if empty
if ( m_strLocalFile.empty() && (style & wxCONFIG_USE_LOCAL_FILE) )
#if wxUSE_STREAMS
wxFileConfig::wxFileConfig(wxInputStream &inStream, const wxMBConv& conv)
#if wxUSE_STREAMS
wxFileConfig::wxFileConfig(wxInputStream &inStream, const wxMBConv& conv)
{
// always local_file when this constructor is called (?)
SetStyle(GetStyle() | wxCONFIG_USE_LOCAL_FILE);
{
// always local_file when this constructor is called (?)
SetStyle(GetStyle() | wxCONFIG_USE_LOCAL_FILE);
{
wxString line = p->Text();
line += wxTextFile::GetEOL();
{
wxString line = p->Text();
line += wxTextFile::GetEOL();
- if ( !file.Write(line, m_conv) )
+ if ( !file.Write(line, *m_conv) )
{
wxLogError(_("can't write user configuration file."));
return false;
{
wxLogError(_("can't write user configuration file."));
return false;