correct some compile warnings and errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -713,7 +713,7 @@ public:
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnKillFocus(wxFocusEvent& event) {
|
void OnKillFocus(wxFocusEvent& WXUNUSED(event)) {
|
||||||
// Do nothing. Prevents base class from resetting the colors...
|
// Do nothing. Prevents base class from resetting the colors...
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -799,7 +799,7 @@ public:
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnActivate(wxListEvent& event) {
|
void OnActivate(wxListEvent& WXUNUSED(event)) {
|
||||||
doubleClickAction(doubleClickActionData);
|
doubleClickAction(doubleClickActionData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -85,7 +85,7 @@ public:
|
|||||||
|
|
||||||
bool AcceptsFocus() const { return FALSE; }
|
bool AcceptsFocus() const { return FALSE; }
|
||||||
|
|
||||||
void OnPaint(wxPaintEvent& evt) {
|
void OnPaint(wxPaintEvent& WXUNUSED(evt)) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
Surface* surfaceWindow = Surface::Allocate();
|
Surface* surfaceWindow = Surface::Allocate();
|
||||||
surfaceWindow->Init(&dc, m_ct->wDraw.GetID());
|
surfaceWindow->Init(&dc, m_ct->wDraw.GetID());
|
||||||
@@ -205,9 +205,11 @@ bool ScintillaWX::SetIdle(bool on) {
|
|||||||
if (idler.state != on) {
|
if (idler.state != on) {
|
||||||
// connect or disconnect the EVT_IDLE handler
|
// connect or disconnect the EVT_IDLE handler
|
||||||
if (on)
|
if (on)
|
||||||
stc->Connect(-1, wxEVT_IDLE, (wxObjectEventFunction)&wxStyledTextCtrl::OnIdle);
|
stc->Connect(-1, wxEVT_IDLE,
|
||||||
|
(wxObjectEventFunction) (wxEventFunction) (wxIdleEventFunction) &wxStyledTextCtrl::OnIdle);
|
||||||
else
|
else
|
||||||
stc->Disconnect(-1, wxEVT_IDLE, (wxObjectEventFunction)&wxStyledTextCtrl::OnIdle);
|
stc->Disconnect(-1, wxEVT_IDLE,
|
||||||
|
(wxObjectEventFunction) (wxEventFunction) (wxIdleEventFunction) &wxStyledTextCtrl::OnIdle);
|
||||||
idler.state = on;
|
idler.state = on;
|
||||||
}
|
}
|
||||||
return idler.state;
|
return idler.state;
|
||||||
|
@@ -713,7 +713,7 @@ public:
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnKillFocus(wxFocusEvent& event) {
|
void OnKillFocus(wxFocusEvent& WXUNUSED(event)) {
|
||||||
// Do nothing. Prevents base class from resetting the colors...
|
// Do nothing. Prevents base class from resetting the colors...
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -799,7 +799,7 @@ public:
|
|||||||
event.Skip();
|
event.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnActivate(wxListEvent& event) {
|
void OnActivate(wxListEvent& WXUNUSED(event)) {
|
||||||
doubleClickAction(doubleClickActionData);
|
doubleClickAction(doubleClickActionData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -85,7 +85,7 @@ public:
|
|||||||
|
|
||||||
bool AcceptsFocus() const { return FALSE; }
|
bool AcceptsFocus() const { return FALSE; }
|
||||||
|
|
||||||
void OnPaint(wxPaintEvent& evt) {
|
void OnPaint(wxPaintEvent& WXUNUSED(evt)) {
|
||||||
wxPaintDC dc(this);
|
wxPaintDC dc(this);
|
||||||
Surface* surfaceWindow = Surface::Allocate();
|
Surface* surfaceWindow = Surface::Allocate();
|
||||||
surfaceWindow->Init(&dc, m_ct->wDraw.GetID());
|
surfaceWindow->Init(&dc, m_ct->wDraw.GetID());
|
||||||
@@ -205,9 +205,11 @@ bool ScintillaWX::SetIdle(bool on) {
|
|||||||
if (idler.state != on) {
|
if (idler.state != on) {
|
||||||
// connect or disconnect the EVT_IDLE handler
|
// connect or disconnect the EVT_IDLE handler
|
||||||
if (on)
|
if (on)
|
||||||
stc->Connect(-1, wxEVT_IDLE, (wxObjectEventFunction)&wxStyledTextCtrl::OnIdle);
|
stc->Connect(-1, wxEVT_IDLE,
|
||||||
|
(wxObjectEventFunction) (wxEventFunction) (wxIdleEventFunction) &wxStyledTextCtrl::OnIdle);
|
||||||
else
|
else
|
||||||
stc->Disconnect(-1, wxEVT_IDLE, (wxObjectEventFunction)&wxStyledTextCtrl::OnIdle);
|
stc->Disconnect(-1, wxEVT_IDLE,
|
||||||
|
(wxObjectEventFunction) (wxEventFunction) (wxIdleEventFunction) &wxStyledTextCtrl::OnIdle);
|
||||||
idler.state = on;
|
idler.state = on;
|
||||||
}
|
}
|
||||||
return idler.state;
|
return idler.state;
|
||||||
|
Reference in New Issue
Block a user