fix some (harmless) mingw32 4.3 warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1364,7 +1364,7 @@ bool wxDataViewHeaderWindowMSW::Create( wxDataViewCtrl *parent, wxWindowID id,
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_imageList = new wxImageList( 16, 16 );
|
m_imageList = new wxImageList( 16, 16 );
|
||||||
Header_SetImageList( (HWND) m_hWnd, m_imageList->GetHIMAGELIST() );
|
(void)Header_SetImageList((HWND) m_hWnd, m_imageList->GetHIMAGELIST());
|
||||||
|
|
||||||
// we need to subclass the m_hWnd to force wxWindow::HandleNotify
|
// we need to subclass the m_hWnd to force wxWindow::HandleNotify
|
||||||
// to call wxDataViewHeaderWindow::MSWOnNotify
|
// to call wxDataViewHeaderWindow::MSWOnNotify
|
||||||
|
@@ -2831,10 +2831,10 @@ WXLPARAM wxListCtrl::OnCustomDraw(WXLPARAM lParam)
|
|||||||
// Necessary for drawing hrules and vrules, if specified
|
// Necessary for drawing hrules and vrules, if specified
|
||||||
void wxListCtrl::OnPaint(wxPaintEvent& event)
|
void wxListCtrl::OnPaint(wxPaintEvent& event)
|
||||||
{
|
{
|
||||||
bool drawHRules = HasFlag(wxLC_HRULES);
|
const bool drawHRules = HasFlag(wxLC_HRULES);
|
||||||
bool drawVRules = HasFlag(wxLC_VRULES);
|
const bool drawVRules = HasFlag(wxLC_VRULES);
|
||||||
|
|
||||||
if (!InReportView() || !drawHRules && !drawVRules)
|
if (!InReportView() || !(drawHRules || drawVRules))
|
||||||
{
|
{
|
||||||
event.Skip();
|
event.Skip();
|
||||||
return;
|
return;
|
||||||
|
@@ -617,8 +617,8 @@ void ScintillaWX::UpdateSystemCaret() {
|
|||||||
|
|
||||||
bool ScintillaWX::HasCaretSizeChanged() {
|
bool ScintillaWX::HasCaretSizeChanged() {
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
if (( (0 != vs.caretWidth) && (sysCaretWidth != vs.caretWidth) )
|
if ( (vs.caretWidth && (sysCaretWidth != vs.caretWidth))
|
||||||
|| (0 != vs.lineHeight) && (sysCaretHeight != vs.lineHeight)) {
|
|| (vs.lineHeight && (sysCaretHeight != vs.lineHeight)) ) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user