From ed2b8ca92ae00ab96b0ea2b1c3fc9be4622b61ff Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 19 Dec 2016 11:01:37 +0200 Subject: convert SFX_EVENT constants to scoped enum SFX_EVENT_CLOSEAPP and SFX_EVENT_TOGGLEFULLSCREENMODE are never generated, so remove them and delete the code that receives them Change-Id: I2d003ba73fff0b02120ba29ff58e1d2399dedf00 Reviewed-on: https://gerrit.libreoffice.org/32168 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- svx/source/form/fmundo.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'svx') diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx index 6aecd03c1d44..448489b54a31 100644 --- a/svx/source/form/fmundo.cxx +++ b/svx/source/form/fmundo.cxx @@ -323,10 +323,11 @@ void FmXUndoEnvironment::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) { switch (pEventHint->GetEventId()) { - case SFX_EVENT_CREATEDOC: - case SFX_EVENT_OPENDOC: + case SfxEventHintId::CreateDoc: + case SfxEventHintId::OpenDoc: ModeChanged(); break; + default: break; } } } -- cgit