From 735a002507e914bc0c35504a85dc0585b25b76ce Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Dec 2016 09:28:30 +0200 Subject: convert EnumContext::Context to scoped enum Change-Id: I16ec63beb801073e5d604d852892c2fd6e8d8fc3 Reviewed-on: https://gerrit.libreoffice.org/32272 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sd/source/ui/unoidl/DrawController.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sd/source/ui/unoidl/DrawController.cxx') diff --git a/sd/source/ui/unoidl/DrawController.cxx b/sd/source/ui/unoidl/DrawController.cxx index a34d55b15092..446cad75ba2f 100644 --- a/sd/source/ui/unoidl/DrawController.cxx +++ b/sd/source/ui/unoidl/DrawController.cxx @@ -510,37 +510,37 @@ void DrawController::BroadcastContextChange() const if ( ! pViewShell) return; - EnumContext::Context eContext (EnumContext::Context_Unknown); + EnumContext::Context eContext (EnumContext::Context::Unknown); switch (pViewShell->GetShellType()) { case ViewShell::ST_IMPRESS: case ViewShell::ST_DRAW: if (mbMasterPageMode) - eContext = EnumContext::Context_MasterPage; + eContext = EnumContext::Context::MasterPage; else - eContext = EnumContext::Context_DrawPage; + eContext = EnumContext::Context::DrawPage; break; case ViewShell::ST_NOTES: - eContext = EnumContext::Context_NotesPage; + eContext = EnumContext::Context::NotesPage; break; case ViewShell::ST_HANDOUT: - eContext = EnumContext::Context_HandoutPage; + eContext = EnumContext::Context::HandoutPage; break; case ViewShell::ST_OUTLINE: - eContext = EnumContext::Context_OutlineText; + eContext = EnumContext::Context::OutlineText; break; case ViewShell::ST_SLIDE_SORTER: - eContext = EnumContext::Context_SlidesorterPage; + eContext = EnumContext::Context::SlidesorterPage; break; case ViewShell::ST_PRESENTATION: case ViewShell::ST_NONE: default: - eContext = EnumContext::Context_Empty; + eContext = EnumContext::Context::Empty; break; } -- cgit