summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-06 11:12:14 +0200
committerNoel Grandin <noel@peralex.com>2015-03-11 10:16:53 +0200
commit5eea85ec4fa7c458785be749a0e370a0883ff693 (patch)
tree8e9c5055d2ebfa1586b8106dc4f0a4d69f0d4021 /sw/qa
parent68c87b46fd26291463989d5bf751bc4cecf09b28 (diff)
convert SwMoveFlags and SwInsertFlags from enum to enum class
Change-Id: I067656a47845c5d3fa143ce400b4ef0f8bf9ac5f
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/core/uwriter.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx
index f1a4793c626d..6bdc043be340 100644
--- a/sw/qa/core/uwriter.cxx
+++ b/sw/qa/core/uwriter.cxx
@@ -1093,14 +1093,13 @@ void SwDocTest::randomTest()
}
break;
case 4: { // movement
- IDocumentContentOperations::SwMoveFlags nFlags =
- (IDocumentContentOperations::SwMoveFlags)
- (getRand(1) ? // FIXME: puterb this more ?
- IDocumentContentOperations::DOC_MOVEDEFAULT :
- IDocumentContentOperations::DOC_MOVEALLFLYS |
- IDocumentContentOperations::DOC_CREATEUNDOOBJ |
- IDocumentContentOperations::DOC_MOVEREDLINES |
- IDocumentContentOperations::DOC_NO_DELFRMS);
+ SwMoveFlags nFlags =
+ getRand(1) // FIXME: puterb this more ?
+ ? SwMoveFlags::DEFAULT
+ : SwMoveFlags::ALLFLYS |
+ SwMoveFlags::CREATEUNDOOBJ |
+ SwMoveFlags::REDLINES |
+ SwMoveFlags::NO_DELFRMS;
SwPosition aTo(getRandomPosition(m_pDoc, i/10));
m_pDoc->getIDocumentContentOperations().MoveRange(aCrs, aTo, nFlags);
break;