X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5fc7ede910768d418a0b436e0046300712304d3b..d3acd3697ad19e0edbff62db7f94bd025cf8883b:/src/gtk/region.cpp?ds=sidebyside diff --git a/src/gtk/region.cpp b/src/gtk/region.cpp index 49c4d86de5..edb6b766d9 100644 --- a/src/gtk/region.cpp +++ b/src/gtk/region.cpp @@ -333,39 +333,38 @@ IMPLEMENT_DYNAMIC_CLASS(wxRegionIterator,wxObject); wxRegionIterator::wxRegionIterator() { - m_current = 0; + Reset(); } wxRegionIterator::wxRegionIterator( const wxRegion& region ) { - m_region = region; - m_current = 0; + Reset(region); } void wxRegionIterator::Reset( const wxRegion& region ) { m_region = region; - m_current = 0; + Reset(); } wxRegionIterator::operator bool () const { - return m_current < m_region.GetRectList()->Number(); + return m_current < (size_t)m_region.GetRectList()->Number(); } bool wxRegionIterator::HaveRects() const { - return m_current < m_region.GetRectList()->Number(); + return m_current < (size_t)m_region.GetRectList()->Number(); } void wxRegionIterator::operator ++ () { - if (m_current < m_region.GetRectList()->Number()) ++m_current; + if (m_current < (size_t)m_region.GetRectList()->Number()) ++m_current; } void wxRegionIterator::operator ++ (int) { - if (m_current < m_region.GetRectList()->Number()) ++m_current; + if (m_current < (size_t)m_region.GetRectList()->Number()) ++m_current; } wxCoord wxRegionIterator::GetX() const