diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-07 12:30:39 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-11-07 14:53:36 +0200 |
commit | 31d902d3c00fdc5f088aff433b7ebf308a718339 (patch) | |
tree | 07b113a7e8d6bc7f6ba89bd5b6af002a594e6120 /vcl/source/window/mouseevent.cxx | |
parent | adaf5229afa37331da6fac2c4711494f53a2e067 (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 'vcl/source/window/mouseevent.cxx')
-rw-r--r-- | vcl/source/window/mouseevent.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/mouseevent.cxx b/vcl/source/window/mouseevent.cxx index 3fb692d16f71..d4a493c71449 100644 --- a/vcl/source/window/mouseevent.cxx +++ b/vcl/source/window/mouseevent.cxx @@ -26,7 +26,7 @@ /** inits this vcl KeyEvent with all settings from the given awt event **/ MouseEvent::MouseEvent( const ::com::sun::star::awt::MouseEvent& rEvent ) : maPos( rEvent.X, rEvent.Y ) -, mnMode( 0 ) +, mnMode( MouseEventModifiers::NONE ) , mnClicks( static_cast< sal_uInt16 >( rEvent.ClickCount ) ) , mnCode( 0 ) { @@ -38,8 +38,8 @@ MouseEvent::MouseEvent( const ::com::sun::star::awt::MouseEvent& rEvent ) mnCode |= KEY_MOD1; if( (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::MOD2) != 0 ) mnCode |= KEY_MOD2; - if( (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::MOD3) != 0 ) - mnCode |= KEY_MOD3; + if( (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::MOD3) != 0 ) + mnCode |= KEY_MOD3; } if( rEvent.Buttons ) |