summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-12 17:25:33 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-12 16:43:49 +0000
commitc967872d46a7cfd7c52063068313d5ec0356453e (patch)
treeec35d758d389d9abdb955429d8797c712ce6828a /sw/source/uibase
parentab06f67ee26e730f209a3ff8c4717901f70765fe (diff)
convert SW_MOVE constants to enum
Change-Id: I504862618bfeeeed674c1cb816104a167cb2e27e Reviewed-on: https://gerrit.libreoffice.org/11935 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/docvw/edtwin.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx
index f95e7f69a862..95d2bf3d2f52 100644
--- a/sw/source/uibase/docvw/edtwin.cxx
+++ b/sw/source/uibase/docvw/edtwin.cxx
@@ -1187,14 +1187,14 @@ void SwEditWin::ChangeDrawing( sal_uInt8 nDir )
MOVE_UP_HUGE == nDir ||
MOVE_RIGHT_HUGE == nDir ||
MOVE_DOWN_HUGE == nDir);
- sal_uInt16 nAnchorDir = SW_MOVE_UP;
+ SwMove nAnchorDir = SwMove::UP;
switch(nDir)
{
case MOVE_LEFT_SMALL:
case MOVE_LEFT_HUGE:
case MOVE_LEFT_BIG:
nX = -1;
- nAnchorDir = SW_MOVE_LEFT;
+ nAnchorDir = SwMove::LEFT;
break;
case MOVE_UP_SMALL:
case MOVE_UP_HUGE:
@@ -1205,13 +1205,13 @@ void SwEditWin::ChangeDrawing( sal_uInt8 nDir )
case MOVE_RIGHT_HUGE:
case MOVE_RIGHT_BIG:
nX = +1;
- nAnchorDir = SW_MOVE_RIGHT;
+ nAnchorDir = SwMove::RIGHT;
break;
case MOVE_DOWN_SMALL:
case MOVE_DOWN_HUGE:
case MOVE_DOWN_BIG:
nY = +1;
- nAnchorDir = SW_MOVE_DOWN;
+ nAnchorDir = SwMove::DOWN;
break;
}