summaryrefslogtreecommitdiff
path: root/svtools/source/control/scrwin.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-20 14:26:46 +0200
committerNoel Grandin <noel@peralex.com>2015-04-22 10:28:41 +0200
commit2c9ee17c3b18d82680f4949d029a7caff4029c03 (patch)
tree97021cb75854fb82b18eaf99c190306022ac7570 /svtools/source/control/scrwin.cxx
parent865535acc3fb2bb8c8ce50649f70628f923a5f54 (diff)
convert SCRWIN_ constants to scoped enum
Change-Id: I345b2d6779b1d2595e949da0030f7acb299256f9
Diffstat (limited to 'svtools/source/control/scrwin.cxx')
-rw-r--r--svtools/source/control/scrwin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/control/scrwin.cxx b/svtools/source/control/scrwin.cxx
index 09d32acecfc6..44dbf55d8dea 100644
--- a/svtools/source/control/scrwin.cxx
+++ b/svtools/source/control/scrwin.cxx
@@ -24,9 +24,9 @@
void ScrollableWindow::ImpInitialize( ScrollableWindowFlags nFlags )
{
- bHandleDragging = (bool) ( nFlags & SCRWIN_THUMBDRAGGING );
- bVCenter = (nFlags & SCRWIN_VCENTER) == SCRWIN_VCENTER;
- bHCenter = (nFlags & SCRWIN_HCENTER) == SCRWIN_HCENTER;
+ bHandleDragging = bool( nFlags & ScrollableWindowFlags::THUMBDRAGGING );
+ bVCenter = bool(nFlags & ScrollableWindowFlags::VCENTER);
+ bHCenter = bool(nFlags & ScrollableWindowFlags::HCENTER);
bScrolling = false;
// set the handlers for the scrollbars