Visualage C++ V4.0 updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
1999-12-14 23:32:53 +00:00
parent aaf6c39ae6
commit 9dea36ef6d
18 changed files with 122 additions and 49 deletions

View File

@@ -323,7 +323,7 @@ bool wxIniConfig::Read(const wxString& szKey, long *pl) const
static const int nMagic = 17; // 17 is some "rare" number
static const int nMagic2 = 28; // arbitrary number != nMagic
long lVal; // = GetPrivateProfileInt(m_strGroup, strKey, nMagic, m_strLocalFilename);
long lVal = 0; // = GetPrivateProfileInt(m_strGroup, strKey, nMagic, m_strLocalFilename);
if ( lVal != nMagic ) {
// the value was read from the file
*pl = lVal;
@@ -349,7 +349,7 @@ bool wxIniConfig::Write(const wxString& szKey, const wxString& szValue)
wxConfigPathChanger path(this, szKey);
wxString strKey = GetPrivateKeyName(path.Name());
bool bOk; // = WritePrivateProfileString(m_strGroup, strKey,
bool bOk = FALSE; // = WritePrivateProfileString(m_strGroup, strKey,
// szValue, m_strLocalFilename) != 0;
if ( !bOk )
@@ -394,7 +394,7 @@ bool wxIniConfig::DeleteEntry(const wxString& szKey, bool bGroupIfEmptyAlso)
return TRUE;
// delete the current group too
bool bOk; // = WritePrivateProfileString(m_strGroup, NULL,
bool bOk = FALSE; // = WritePrivateProfileString(m_strGroup, NULL,
// NULL, m_strLocalFilename) != 0;
if ( !bOk )
@@ -409,7 +409,7 @@ bool wxIniConfig::DeleteGroup(const wxString& szKey)
// passing NULL as section name to WritePrivateProfileString deletes the
// whole section according to the docs
bool bOk; // = WritePrivateProfileString(path.Name(), NULL,
bool bOk = FALSE; // = WritePrivateProfileString(path.Name(), NULL,
// NULL, m_strLocalFilename) != 0;
if ( !bOk )
@@ -429,7 +429,7 @@ bool wxIniConfig::DeleteAll()
// then delete our own ini file
char szBuf[MAX_PATH];
size_t nRc; // = GetWindowsDirectory(szBuf, WXSIZEOF(szBuf));
size_t nRc = 0; // = GetWindowsDirectory(szBuf, WXSIZEOF(szBuf));
if ( nRc == 0 )
{
wxLogLastError("GetWindowsDirectory");