summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-07 12:30:39 +0200
committerNoel Grandin <noel@peralex.com>2014-11-07 14:53:36 +0200
commit31d902d3c00fdc5f088aff433b7ebf308a718339 (patch)
tree07b113a7e8d6bc7f6ba89bd5b6af002a594e6120 /svx
parentadaf5229afa37331da6fac2c4711494f53a2e067 (diff)
fdo#84938: replace MOUSE_ modifier constants with enum
and make the two categories of constants non-overlapping, we really don't need to risk confusion in order to save 6 bits in a data structure like this. Change-Id: I2251195d8e45ed04e2a89e47ae9c3e52cf0475c0
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/connctrl.cxx2
-rw-r--r--svx/source/fmcomp/gridcell.cxx2
-rw-r--r--svx/source/svdraw/svdview.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/connctrl.cxx b/svx/source/dialog/connctrl.cxx
index f87d310a37e1..4d2ca798bf79 100644
--- a/svx/source/dialog/connctrl.cxx
+++ b/svx/source/dialog/connctrl.cxx
@@ -135,7 +135,7 @@ void SvxXConnectionPreview::AdaptSize()
SetMapMode( aDisplayMap );
Point aPos;
- MouseEvent aMEvt( aPos, 1, 0, MOUSE_RIGHT );
+ MouseEvent aMEvt( aPos, 1, MouseEventModifiers::NONE, MOUSE_RIGHT );
MouseButtonDown( aMEvt );
}
}
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index c8a9dcf75a4a..f9514e7dec4a 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -3494,7 +3494,7 @@ void FmXGridCell::onWindowEvent( const sal_uIntPtr _nEventId, const vcl::Window&
{
awt::MouseEvent aEvent( VCLUnoHelper::createMouseEvent( rMouseEvent, *this ) );
aEvent.ClickCount = 0;
- const bool bSimpleMove = ( ( rMouseEvent.GetMode() & MOUSE_SIMPLEMOVE ) != 0 );
+ const bool bSimpleMove = bool( rMouseEvent.GetMode() & MouseEventModifiers::SIMPLEMOVE );
m_aMouseMotionListeners.notifyEach( bSimpleMove ? &awt::XMouseMotionListener::mouseMoved: &awt::XMouseMotionListener::mouseDragged, aEvent );
}
}
diff --git a/svx/source/svdraw/svdview.cxx b/svx/source/svdraw/svdview.cxx
index bf7ca1cc4689..784d1e834339 100644
--- a/svx/source/svdraw/svdview.cxx
+++ b/svx/source/svdraw/svdview.cxx
@@ -63,7 +63,7 @@ SdrViewEvent::SdrViewEvent()
eHdlKind(HDL_MOVE),
eEndCreateCmd(SDRCREATE_NEXTPOINT),
nMouseClicks(0),
- nMouseMode(0),
+ nMouseMode(MouseEventModifiers::NONE),
nMouseCode(0),
nHlplIdx(0),
nGlueId(0),