No real changes, just use AllocExclusive() in wxOSX wxRegion.

Don't fiddle with the reference count manually, just use the base class
function doing it instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2011-07-15 22:58:30 +00:00
parent a1c9e7d143
commit 22aa243d58

View File

@ -202,17 +202,7 @@ bool wxRegion::DoCombine(const wxRegion& region, wxRegionOp op)
{
wxCHECK_MSG( region.IsOk(), false, wxT("invalid wxRegion") );
// Don't change shared data
if (!m_refData)
{
m_refData = new wxRegionRefData();
}
else if (m_refData->GetRefCount() > 1)
{
wxRegionRefData* ref = (wxRegionRefData*)m_refData;
UnRef();
m_refData = new wxRegionRefData(*ref);
}
AllocExclusive();
switch (op)
{