From 66b8bc9399a9b27b344a0fefdbcd61736176572b Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Fri, 12 Feb 2016 14:24:56 +0900 Subject: starmath: Convert RectCopyMBL to scoped enum Change-Id: I44e4f3086f642adccdff8dcf82298e5f4e9cb282 Reviewed-on: https://gerrit.libreoffice.org/22305 Tested-by: Jenkins Reviewed-by: David Tardon --- starmath/source/rect.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'starmath/source/rect.cxx') diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index 0cd7504e5add..b279be9e534c 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -451,22 +451,22 @@ SmRect & SmRect::ExtendBy(const SmRect &rRect, RectCopyMBL eCopyMode) OSL_ENSURE(HasAlignInfo(), "Sm: ooops..."); switch (eCopyMode) - { case RCP_THIS: + { case RectCopyMBL::This: // already done break; - case RCP_ARG: + case RectCopyMBL::Arg: CopyMBL(rRect); break; - case RCP_NONE: + case RectCopyMBL::None: ClearBaseline(); nAlignM = (nAlignT + nAlignB) / 2; break; - case RCP_XOR: + case RectCopyMBL::Xor: if (!HasBaseline()) CopyMBL(rRect); break; default : - SAL_WARN("starmath", "unknown case"); + assert(false); } } -- cgit