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 /svtools/source/control | |
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 'svtools/source/control')
-rw-r--r-- | svtools/source/control/tabbar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx index 2e8fa764f6b8..10fb75782778 100644 --- a/svtools/source/control/tabbar.cxx +++ b/svtools/source/control/tabbar.cxx @@ -897,7 +897,7 @@ void TabBar::MouseButtonDown( const MouseEvent& rMEvt ) return; } - if ( (rMEvt.GetMode() & (MOUSE_MULTISELECT | MOUSE_RANGESELECT)) && (rMEvt.GetClicks() == 1) ) + if ( (rMEvt.GetMode() & (MouseEventModifiers::MULTISELECT | MouseEventModifiers::RANGESELECT)) && (rMEvt.GetClicks() == 1) ) { if ( nSelId ) { @@ -907,7 +907,7 @@ void TabBar::MouseButtonDown( const MouseEvent& rMEvt ) if ( pItem->mbEnable ) { - if ( (rMEvt.GetMode() & MOUSE_MULTISELECT) && (mnWinStyle & WB_MULTISELECT) ) + if ( (rMEvt.GetMode() & MouseEventModifiers::MULTISELECT) && (mnWinStyle & WB_MULTISELECT) ) { if ( nSelId != mnCurPageId ) { |