Kaydet (Commit) 6ada5c93 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:useuniqueptr in SfxItemDisruptor_Impl

Change-Id: Ie85c1a8fd699f68ffcc8853be4bf8a86cfec06e7
Reviewed-on: https://gerrit.libreoffice.org/48295Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 3a2a430a
......@@ -26,7 +26,7 @@
class SfxItemDisruptor_Impl
{
SfxPoolItem * pItem;
std::unique_ptr<SfxPoolItem> pItem;
Idle m_Idle;
private:
......@@ -64,7 +64,7 @@ SfxItemDisruptor_Impl::~SfxItemDisruptor_Impl()
// reset RefCount (was set to SFX_ITEMS_SPECIAL before!)
pItem->SetRefCount( 0 );
delete pItem;
pItem.reset();
}
IMPL_LINK_NOARG(SfxItemDisruptor_Impl, Delete, Timer*, void)
......
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