diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2016-02-12 14:24:56 +0900 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-02-16 08:43:54 +0000 |
commit | 66b8bc9399a9b27b344a0fefdbcd61736176572b (patch) | |
tree | 3156f12f7bd6f155cea495953346535b2a63f5f9 /starmath/source/rect.cxx | |
parent | c44a445031a12f6c6e51fcff620d8a3cc94a8c7b (diff) |
starmath: Convert RectCopyMBL to scoped enum
Change-Id: I44e4f3086f642adccdff8dcf82298e5f4e9cb282
Reviewed-on: https://gerrit.libreoffice.org/22305
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Tardon <dtardon@redhat.com>
Diffstat (limited to 'starmath/source/rect.cxx')
-rw-r--r-- | starmath/source/rect.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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); } } |