diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-24 11:31:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-24 18:44:10 +0200 |
commit | 4a6ea4ceeec99b27bfb06cde6d8fac3bea068eee (patch) | |
tree | 49a0b408de636da911f1bb0868e516fc0f105703 /svtools/source | |
parent | b95ead7b2a39bf52e2293d7e8094b9520af74ade (diff) |
loplugin:unusedenumconstants BrowserMode
Change-Id: Ida607fedc15062863f9de771fc7005f8c60cb0b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92842
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/brwbox/brwbox1.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index cd62dff7c05a..ee3922582cda 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -2131,8 +2131,7 @@ void BrowseBox::SetMode( BrowserMode nMode ) bHLines = ( nMode & BrowserMode::HLINES ) == BrowserMode::HLINES; bVLines = ( nMode & BrowserMode::VLINES ) == BrowserMode::VLINES; - WinBits nVScrollWinBits = - WB_VSCROLL | ( ( nMode & BrowserMode::THUMBDRAGGING ) ? WB_DRAG : 0 ); + constexpr WinBits nVScrollWinBits = WB_VSCROLL; pVScroll = ( nMode & BrowserMode::TRACKING_TIPS ) == BrowserMode::TRACKING_TIPS ? VclPtr<BrowserScrollBar>::Create( this, nVScrollWinBits, pDataWin.get() ) : VclPtr<ScrollBar>::Create( this, nVScrollWinBits ); |