From 83eb114394879cbfd073322a51c47d02553c1fcf Mon Sep 17 00:00:00 2001
From: Noel Grandin <noel@peralex.com>
Date: Wed, 20 May 2015 14:46:54 +0200
Subject: convert constants in include/vcl/settings.hxx to scoped enums

Change-Id: I2a110c017f13eca6ddbd70ef3ed195d24adef0a3
Reviewed-on: https://gerrit.libreoffice.org/15828
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
---
 desktop/source/app/app.cxx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'desktop')

diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 8a86c5416ccc..504275222dd4 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1836,25 +1836,25 @@ void Desktop::OverrideSystemSettings( AllSettings& rSettings )
     StyleSettings hStyleSettings   = rSettings.GetStyleSettings();
     MouseSettings hMouseSettings = rSettings.GetMouseSettings();
 
-    sal_uLong nDragFullOptions = hStyleSettings.GetDragFullOptions();
+    DragFullOptions nDragFullOptions = hStyleSettings.GetDragFullOptions();
 
     SvtTabAppearanceCfg aAppearanceCfg;
     sal_uInt16 nDragMode = aAppearanceCfg.GetDragMode();
     switch ( nDragMode )
     {
     case DragFullWindow:
-        nDragFullOptions |= DRAGFULL_OPTION_ALL;
+        nDragFullOptions |= DragFullOptions::All;
         break;
     case DragFrame:
-        nDragFullOptions &= ~DRAGFULL_OPTION_ALL;
+        nDragFullOptions &= ~DragFullOptions::All;
         break;
     case DragSystemDep:
     default:
         break;
     }
 
-    sal_uInt32 nFollow = hMouseSettings.GetFollow();
-    hMouseSettings.SetFollow( aAppearanceCfg.IsMenuMouseFollow() ? (nFollow|MOUSE_FOLLOW_MENU) : (nFollow&~MOUSE_FOLLOW_MENU));
+    MouseFollowFlags nFollow = hMouseSettings.GetFollow();
+    hMouseSettings.SetFollow( aAppearanceCfg.IsMenuMouseFollow() ? (nFollow|MouseFollowFlags::Menu) : (nFollow&~MouseFollowFlags::Menu));
     rSettings.SetMouseSettings(hMouseSettings);
 
     SvtMenuOptions aMenuOpt;
-- 
cgit