Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -339,7 +339,7 @@ void Edit::OnMarginClick (wxStyledTextEvent &event) {
|
||||
}
|
||||
|
||||
void Edit::OnCharAdded (wxStyledTextEvent &event) {
|
||||
char chr = event.GetKey();
|
||||
char chr = (char)event.GetKey();
|
||||
int currentLine = GetCurrentLine();
|
||||
// Change this if support for mac files with \r is needed
|
||||
if (chr == '\n') {
|
||||
|
@@ -301,7 +301,7 @@ AppFrame::AppFrame (const wxString &title)
|
||||
SetBackgroundColour (_T("WHITE"));
|
||||
|
||||
// about box shown for 1 seconds
|
||||
AppAbout (this, 1000);
|
||||
AppAbout dlg(this, 1000);
|
||||
|
||||
// create menu
|
||||
m_menuBar = new wxMenuBar;
|
||||
@@ -329,7 +329,7 @@ void AppFrame::OnClose (wxCloseEvent &event) {
|
||||
}
|
||||
|
||||
void AppFrame::OnAbout (wxCommandEvent &WXUNUSED(event)) {
|
||||
AppAbout (this);
|
||||
AppAbout dlg(this);
|
||||
}
|
||||
|
||||
void AppFrame::OnExit (wxCommandEvent &WXUNUSED(event)) {
|
||||
@@ -387,7 +387,7 @@ void AppFrame::OnFileClose (wxCommandEvent &WXUNUSED(event)) {
|
||||
// properties event handlers
|
||||
void AppFrame::OnProperties (wxCommandEvent &WXUNUSED(event)) {
|
||||
if (!m_edit) return;
|
||||
EditProperties (m_edit, 0);
|
||||
EditProperties dlg(m_edit, 0);
|
||||
}
|
||||
|
||||
// print event handlers
|
||||
|
@@ -85,7 +85,9 @@ void wxCaptionBar::ApplyCaptionStyle(const wxCaptionBarStyle &cbstyle, bool appl
|
||||
{
|
||||
// make the second colour slightly darker then the background
|
||||
wxColour col = GetParent()->GetBackgroundColour();
|
||||
col.Set((col.Red() >> 1) + 20, (col.Green() >> 1) + 20, (col.Blue() >> 1) + 20);
|
||||
col.Set((unsigned char)((col.Red() >> 1) + 20),
|
||||
(unsigned char)((col.Green() >> 1) + 20),
|
||||
(unsigned char)((col.Blue() >> 1) + 20));
|
||||
newstyle.SetSecondColour(col);
|
||||
}
|
||||
|
||||
|
@@ -339,7 +339,7 @@ void Edit::OnMarginClick (wxStyledTextEvent &event) {
|
||||
}
|
||||
|
||||
void Edit::OnCharAdded (wxStyledTextEvent &event) {
|
||||
char chr = event.GetKey();
|
||||
char chr = (char)event.GetKey();
|
||||
int currentLine = GetCurrentLine();
|
||||
// Change this if support for mac files with \r is needed
|
||||
if (chr == '\n') {
|
||||
|
@@ -301,7 +301,7 @@ AppFrame::AppFrame (const wxString &title)
|
||||
SetBackgroundColour (_T("WHITE"));
|
||||
|
||||
// about box shown for 1 seconds
|
||||
AppAbout (this, 1000);
|
||||
AppAbout dlg(this, 1000);
|
||||
|
||||
// create menu
|
||||
m_menuBar = new wxMenuBar;
|
||||
@@ -329,7 +329,7 @@ void AppFrame::OnClose (wxCloseEvent &event) {
|
||||
}
|
||||
|
||||
void AppFrame::OnAbout (wxCommandEvent &WXUNUSED(event)) {
|
||||
AppAbout (this);
|
||||
AppAbout dlg(this);
|
||||
}
|
||||
|
||||
void AppFrame::OnExit (wxCommandEvent &WXUNUSED(event)) {
|
||||
@@ -387,7 +387,7 @@ void AppFrame::OnFileClose (wxCommandEvent &WXUNUSED(event)) {
|
||||
// properties event handlers
|
||||
void AppFrame::OnProperties (wxCommandEvent &WXUNUSED(event)) {
|
||||
if (!m_edit) return;
|
||||
EditProperties (m_edit, 0);
|
||||
EditProperties dlg(m_edit, 0);
|
||||
}
|
||||
|
||||
// print event handlers
|
||||
|
Reference in New Issue
Block a user