diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-05 14:22:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-07-05 18:55:23 +0200 |
commit | ea0e9c0d4de19ac3f8fdfe91bdb085ad9e2b1757 (patch) | |
tree | 42c5066d88eb988dc4eb10f921d1f5b4efa145af /desktop | |
parent | d9dc0e4abbd6c06ee886302b2052e1f6814dfa76 (diff) |
these enums are unnecessary
Change-Id: I29bf28202e11db836764276f773b134356d93e0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154057
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index c0b30c2ae2fd..e4058bfe8932 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1827,16 +1827,16 @@ void Desktop::OverrideSystemSettings( AllSettings& rSettings ) DragFullOptions nDragFullOptions = hStyleSettings.GetDragFullOptions(); - DragMode nDragMode = static_cast<DragMode>(officecfg::Office::Common::View::Window::Drag::get()); + sal_uInt16 nDragMode = officecfg::Office::Common::View::Window::Drag::get(); switch ( nDragMode ) { - case DragMode::FullWindow: + case 0: //FullWindow: nDragFullOptions |= DragFullOptions::All; break; - case DragMode::Frame: + case 1: // Frame: nDragFullOptions &= ~DragFullOptions::All; break; - case DragMode::SystemDep: + case 2: // SystemDep default: break; } |