- Fix gdb2 and regexpl warnings under gcc 4.4.0

svn path=/trunk/; revision=42968
This commit is contained in:
Stefan Ginsberg 2009-08-30 15:35:14 +00:00
parent a8d673a487
commit a557cda82c
8 changed files with 16 additions and 12 deletions

View file

@ -95,7 +95,7 @@ BOOL CRegistryTree::ChangeCurrentKey(const TCHAR *pszRelativePath)
GotoRoot(); // This is full absolute path.
// split path to key names.
TCHAR *pszSeps = _T("\\");
const TCHAR *pszSeps = _T("\\");
// Make buffer and copy relative path into it.
TCHAR *pszBuffer = new TCHAR[_tcslen(pszRelativePath)+1];
@ -124,7 +124,7 @@ BOOL CRegistryTree::ChangeCurrentKey(const TCHAR *pszRelativePath)
}
}
TCHAR *pszNewKey = _tcstok(pszBuffer,pszSeps);
const TCHAR *pszNewKey = _tcstok(pszBuffer,pszSeps);
if ((!pszNewKey)&&((*pszRelativePath != _T('\\'))||(*(pszRelativePath+1) != 0)))
{