use const char*, not char*, for string literals to avoid gcc warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-02-12 22:53:30 +00:00
parent 8e9ca79b3c
commit 522a028a17
4 changed files with 11 additions and 11 deletions

View File

@@ -709,7 +709,7 @@ EditProperties::EditProperties (Edit *edit,
// EditPrint
//----------------------------------------------------------------------------
EditPrint::EditPrint (Edit *edit, wxChar *title)
EditPrint::EditPrint (Edit *edit, const wxChar *title)
: wxPrintout(title) {
m_edit = edit;
m_printed = 0;

View File

@@ -152,7 +152,7 @@ class EditPrint: public wxPrintout {
public:
//! constructor
EditPrint (Edit *edit, wxChar *title = _T(""));
EditPrint (Edit *edit, const wxChar *title = _T(""));
//! event handlers
bool OnPrintPage (int page);

View File

@@ -59,7 +59,7 @@ const CommonInfo g_CommonPrefs = {
//----------------------------------------------------------------------------
// keywordlists
// C++
char* CppWordlist1 =
const char* CppWordlist1 =
"asm auto bool break case catch char class const const_cast "
"continue default delete do double dynamic_cast else enum explicit "
"export extern false float for friend goto if inline int long "
@@ -68,9 +68,9 @@ char* CppWordlist1 =
"struct switch template this throw true try typedef typeid "
"typename union unsigned using virtual void volatile wchar_t "
"while";
char* CppWordlist2 =
const char* CppWordlist2 =
"file";
char* CppWordlist3 =
const char* CppWordlist3 =
"a addindex addtogroup anchor arg attention author b brief bug c "
"class code date def defgroup deprecated dontinclude e em endcode "
"endhtmlonly endif endlatexonly endlink endverbatim enum example "
@@ -83,11 +83,11 @@ char* CppWordlist3 =
"verbinclude version warning weakgroup $ @ \"\" & < > # { }";
// Python
char* PythonWordlist1 =
const char* PythonWordlist1 =
"and assert break class continue def del elif else except exec "
"finally for from global if import in is lambda None not or pass "
"print raise return try while yield";
char* PythonWordlist2 =
const char* PythonWordlist2 =
"ACCELERATORS ALT AUTO3STATE AUTOCHECKBOX AUTORADIOBUTTON BEGIN "
"BITMAP BLOCK BUTTON CAPTION CHARACTERISTICS CHECKBOX CLASS "
"COMBOBOX CONTROL CTEXT CURSOR DEFPUSHBUTTON DIALOG DIALOGEX "

View File

@@ -137,10 +137,10 @@ extern const int g_LanguagePrefsSize;
//----------------------------------------------------------------------------
// StyleInfo
struct StyleInfo {
wxChar *name;
wxChar *foreground;
wxChar *background;
wxChar *fontname;
const wxChar *name;
const wxChar *foreground;
const wxChar *background;
const wxChar *fontname;
int fontsize;
int fontstyle;
int lettercase;