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 /svtools/source | |
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 'svtools/source')
-rw-r--r-- | svtools/source/config/apearcfg.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/config/apearcfg.cxx b/svtools/source/config/apearcfg.cxx index fec538b62a71..4e8a0215043b 100644 --- a/svtools/source/config/apearcfg.cxx +++ b/svtools/source/config/apearcfg.cxx @@ -64,16 +64,16 @@ void SvtTabAppearanceCfg::SetApplicationDefaults ( Application* pApp ) nMouseOptions &= ~ MouseSettingsOptions(MouseSettingsOptions::AutoCenterPos | MouseSettingsOptions::AutoDefBtnPos); - SnapType nSnapMode = static_cast<SnapType>(officecfg::Office::Common::View::Dialog::MousePositioning::get()); + sal_uInt16 nSnapMode = officecfg::Office::Common::View::Dialog::MousePositioning::get(); switch ( nSnapMode ) { - case SnapType::ToButton: + case 0: // ToButton nMouseOptions |= MouseSettingsOptions::AutoDefBtnPos; break; - case SnapType::ToMiddle: + case 1: // ToMiddle nMouseOptions |= MouseSettingsOptions::AutoCenterPos; break; - case SnapType::NONE: + case 2: // NONE default: break; } |