summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-09-22 16:02:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-22 19:05:09 +0000
commita49748caf2bc3d236862eef5d26383212d35e648 (patch)
tree8f6b2ae02ccc0ee8a72dae8a652493f8e087cadd /sfx2
parent450a2fd5e2dafd1a0c08e73ef85db978f6b1a927 (diff)
convert SfxItemKind to scoped enum
reduced size because it is stored in widely used SfxPoolItem. converted 'if' chains to 'switch case' Change-Id: Id9b5e375b681c88e8c91c561abd1a50610aa4815 Reviewed-on: https://gerrit.libreoffice.org/29186 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/itemdel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/control/itemdel.cxx b/sfx2/source/control/itemdel.cxx
index 1ac8ab8aa358..096ab3752864 100644
--- a/sfx2/source/control/itemdel.cxx
+++ b/sfx2/source/control/itemdel.cxx
@@ -48,7 +48,7 @@ SfxItemDisruptor_Impl::SfxItemDisruptor_Impl(SfxPoolItem *const pItemToDisrupt)
m_Idle.SetPriority(SchedulerPriority::DEFAULT_IDLE);
DBG_ASSERT( 0 == pItem->GetRefCount(), "disrupting pooled item" );
- pItem->SetKind( SFX_ITEMS_DELETEONIDLE );
+ pItem->SetKind(SfxItemKind::DeleteOnIdle);
}
void SfxItemDisruptor_Impl::LaunchDeleteOnIdle()