Kaydet (Commit) 1e344298 authored tarafından Noel Grandin's avatar Noel Grandin

use unique_ptr in SwViewShell::ImplEndAction

Change-Id: I9be790996347e191df63198de109acf973104d0d
Reviewed-on: https://gerrit.libreoffice.org/66125
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst a41b1d18
......@@ -320,7 +320,7 @@ void SwViewShell::ImplEndAction( const bool bIdleEnd )
}
mbPaintWorks = true;
SwRegionRects *pRegion = Imp()->GetRegion();
std::unique_ptr<SwRegionRects> pRegion = std::move(Imp()->m_pRegion);
//JP 27.11.97: what hid the selection, must also Show it,
// else we get Paint errors!
......@@ -335,8 +335,6 @@ void SwViewShell::ImplEndAction( const bool bIdleEnd )
{
SwRootFrame* pCurrentLayout = GetLayout();
(void) Imp()->m_pRegion.release(); // pRegion owns it now
//First Invert then Compress, never the other way round!
pRegion->Invert();
......@@ -435,9 +433,6 @@ void SwViewShell::ImplEndAction( const bool bIdleEnd )
else
lcl_PaintTransparentFormControls(*this, aRect); // i#107365
}
delete pRegion;
Imp()->DelRegion();
}
if( bShowCursor )
static_cast<SwCursorShell*>(this)->ShowCursors( true );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment