Check for self-assignment in operator=()
This commit is contained in:
parent
8791313aff
commit
628e7af79e
@ -359,6 +359,9 @@ wxRegionIterator::wxRegionIterator(const wxRegion& region)
|
||||
|
||||
wxRegionIterator& wxRegionIterator::operator=(const wxRegionIterator& ri)
|
||||
{
|
||||
if (this == &ri)
|
||||
return *this;
|
||||
|
||||
delete [] m_rects;
|
||||
|
||||
m_current = ri.m_current;
|
||||
|
Loading…
Reference in New Issue
Block a user