- 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

@ -220,7 +220,7 @@ unsigned int CConsole::GetTabWidth()
return TAB_WIDTH;
}
BOOL CConsole::SetTitle(TCHAR *p)
BOOL CConsole::SetTitle(const TCHAR *p)
{
return SetConsoleTitle(p);
}
@ -640,7 +640,7 @@ Paste:
m_pchBuffer[dwLastCharOffset] = 0; // terminate string in buffer
ret = Write(m_pchBuffer);
m_History.AddHistoryLine(m_pchBuffer);
TCHAR *strLF = _T("\n");
static TCHAR strLF[] = _T("\n");
ret = Write(strLF);
break;
}
@ -1008,7 +1008,7 @@ void CConsole::BeginScrollingOperation()
m_Lines = 0;
}
BOOL CConsole::WriteString(TCHAR *pchString, COORD Position)
BOOL CConsole::WriteString(const TCHAR *pchString, COORD Position)
{
CHAR_INFO ciBuffer[256];
int nSize = _tcslen(pchString);