From 7af79c94e6d64716bf120fcdf1e1dc9d78932686 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sat, 24 Aug 2002 16:36:11 +0000 Subject: [PATCH] getting rid of warnings git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/stattext.cpp | 3 +-- src/mac/carbon/toolbar.cpp | 10 +++++----- src/mac/stattext.cpp | 3 +-- src/mac/toolbar.cpp | 10 +++++----- 4 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/mac/carbon/stattext.cpp b/src/mac/carbon/stattext.cpp index bc89591282..5509db4ddd 100644 --- a/src/mac/carbon/stattext.cpp +++ b/src/mac/carbon/stattext.cpp @@ -76,7 +76,6 @@ void wxStaticText::DrawParagraph(wxDC &dc, wxString paragraph, int &y) int x = 0 ; - int i = 0 ; bool linedrawn = true; while( paragraph.Length() > 0 ) { @@ -157,7 +156,7 @@ void wxStaticText::OnDraw( wxDC &dc ) } wxString paragraph; - int i = 0 ; + size_t i = 0 ; wxString text = m_label; int y = 0 ; while (i < text.Length()) diff --git a/src/mac/carbon/toolbar.cpp b/src/mac/carbon/toolbar.cpp index 27cd473d36..6bd7d0b114 100644 --- a/src/mac/carbon/toolbar.cpp +++ b/src/mac/carbon/toolbar.cpp @@ -202,7 +202,7 @@ bool wxToolBar::Realize() while (node) { wxToolBarTool *tool = (wxToolBarTool *)node->Data(); - wxBitmapRefData * bmap = (wxBitmapRefData*) ( tool->GetNormalBitmap().GetRefData()) ; +// wxBitmapRefData * bmap = (wxBitmapRefData*) ( tool->GetNormalBitmap().GetRefData()) ; if( !tool->IsSeparator() ) { @@ -328,7 +328,7 @@ wxSize wxToolBar::GetToolSize() const void wxToolBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart ) { - int index = 0 ; + size_t index = 0 ; for ( index = 0 ; index < m_macToolHandles.Count() ; ++index ) { if ( m_macToolHandles[index] == (void*) control ) @@ -394,7 +394,7 @@ void wxToolBar::MacSuperChangedPosition() while (node) { wxToolBarTool *tool = (wxToolBarTool *)node->Data(); - wxBitmapRefData * bmap = (wxBitmapRefData*) ( tool->GetNormalBitmap().GetRefData()) ; + // wxBitmapRefData * bmap = (wxBitmapRefData*) ( tool->GetNormalBitmap().GetRefData()) ; if( !tool->IsSeparator() ) { @@ -479,7 +479,7 @@ wxToolBarToolBase *wxToolBar::FindToolForPosition(wxCoord x, wxCoord y) const MacClientToRootWindow( &x , &y ) ; Point pt = { y ,x } ; - int index = 0 ; + size_t index = 0 ; for ( index = 0 ; index < m_macToolHandles.Count() ; ++index ) { if ( m_macToolHandles[index] ) @@ -566,7 +566,7 @@ void wxToolBar::OnPaint(wxPaintEvent& event) dc.YLOG2DEVMAC(m_height) , dc.XLOG2DEVMAC(m_width) } ; UMADrawThemePlacard( &toolbarrect , IsEnabled() ? kThemeStateActive : kThemeStateInactive) ; { - int index = 0 ; + size_t index = 0 ; for ( index = 0 ; index < m_macToolHandles.Count() ; ++index ) { if ( m_macToolHandles[index] ) diff --git a/src/mac/stattext.cpp b/src/mac/stattext.cpp index bc89591282..5509db4ddd 100644 --- a/src/mac/stattext.cpp +++ b/src/mac/stattext.cpp @@ -76,7 +76,6 @@ void wxStaticText::DrawParagraph(wxDC &dc, wxString paragraph, int &y) int x = 0 ; - int i = 0 ; bool linedrawn = true; while( paragraph.Length() > 0 ) { @@ -157,7 +156,7 @@ void wxStaticText::OnDraw( wxDC &dc ) } wxString paragraph; - int i = 0 ; + size_t i = 0 ; wxString text = m_label; int y = 0 ; while (i < text.Length()) diff --git a/src/mac/toolbar.cpp b/src/mac/toolbar.cpp index 27cd473d36..6bd7d0b114 100644 --- a/src/mac/toolbar.cpp +++ b/src/mac/toolbar.cpp @@ -202,7 +202,7 @@ bool wxToolBar::Realize() while (node) { wxToolBarTool *tool = (wxToolBarTool *)node->Data(); - wxBitmapRefData * bmap = (wxBitmapRefData*) ( tool->GetNormalBitmap().GetRefData()) ; +// wxBitmapRefData * bmap = (wxBitmapRefData*) ( tool->GetNormalBitmap().GetRefData()) ; if( !tool->IsSeparator() ) { @@ -328,7 +328,7 @@ wxSize wxToolBar::GetToolSize() const void wxToolBar::MacHandleControlClick( WXWidget control , wxInt16 controlpart ) { - int index = 0 ; + size_t index = 0 ; for ( index = 0 ; index < m_macToolHandles.Count() ; ++index ) { if ( m_macToolHandles[index] == (void*) control ) @@ -394,7 +394,7 @@ void wxToolBar::MacSuperChangedPosition() while (node) { wxToolBarTool *tool = (wxToolBarTool *)node->Data(); - wxBitmapRefData * bmap = (wxBitmapRefData*) ( tool->GetNormalBitmap().GetRefData()) ; + // wxBitmapRefData * bmap = (wxBitmapRefData*) ( tool->GetNormalBitmap().GetRefData()) ; if( !tool->IsSeparator() ) { @@ -479,7 +479,7 @@ wxToolBarToolBase *wxToolBar::FindToolForPosition(wxCoord x, wxCoord y) const MacClientToRootWindow( &x , &y ) ; Point pt = { y ,x } ; - int index = 0 ; + size_t index = 0 ; for ( index = 0 ; index < m_macToolHandles.Count() ; ++index ) { if ( m_macToolHandles[index] ) @@ -566,7 +566,7 @@ void wxToolBar::OnPaint(wxPaintEvent& event) dc.YLOG2DEVMAC(m_height) , dc.XLOG2DEVMAC(m_width) } ; UMADrawThemePlacard( &toolbarrect , IsEnabled() ? kThemeStateActive : kThemeStateInactive) ; { - int index = 0 ; + size_t index = 0 ; for ( index = 0 ; index < m_macToolHandles.Count() ; ++index ) { if ( m_macToolHandles[index] ) -- 2.45.2