summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-09-08 11:41:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-08 11:41:22 +0200
commitac1c3f2ab68a17b6508901bf9b5abdad618158a6 (patch)
tree4b1a759a1a432cf5a054df1f192ef87beb68aea7 /sw/source/core
parent4e5ec21c5191dc6c90c51ae786ac692e804c1fb7 (diff)
more workaround lack of constexpr
Change-Id: I1be117f9845d502d4b8dfa238dc13198f8b76dd6
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/doc/docredln.cxx14
1 files changed, 4 insertions, 10 deletions
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 5f258a43e606..2173fc8d4f07 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -994,19 +994,13 @@ bool SwRangeRedline::HasValidRange() const
void SwRangeRedline::CallDisplayFunc(size_t nMyPos)
{
- switch( RedlineFlags::ShowMask & GetDoc()->getIDocumentRedlineAccess().GetRedlineFlags() )
- {
- case RedlineFlags::ShowInsert | RedlineFlags::ShowDelete:
+ RedlineFlags eShow = RedlineFlags::ShowMask & GetDoc()->getIDocumentRedlineAccess().GetRedlineFlags();
+ if (eShow == (RedlineFlags::ShowInsert | RedlineFlags::ShowDelete))
Show(0, nMyPos);
- break;
- case RedlineFlags::ShowInsert:
+ else if (eShow == RedlineFlags::ShowInsert)
Hide(0, nMyPos);
- break;
- case RedlineFlags::ShowDelete:
+ else if (eShow == RedlineFlags::ShowDelete)
ShowOriginal(0, nMyPos);
- break;
- default: break;
- }
}
void SwRangeRedline::Show(sal_uInt16 nLoop, size_t nMyPos)