From afc755fa61cfd9645c4ed2507bdc3a06b721ed5c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 8 Feb 2017 12:00:27 +0200 Subject: loplugin:unusedenumconstants read-only constants in vcl (2) Change-Id: Ia3da23e0ef2fa710403745bd11255ed001516da4 Reviewed-on: https://gerrit.libreoffice.org/34020 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/vcl/bitmap.hxx | 15 ++++++--------- include/vcl/commandevent.hxx | 1 - include/vcl/gdimtf.hxx | 5 ++--- include/vcl/print.hxx | 6 +++--- 4 files changed, 11 insertions(+), 16 deletions(-) (limited to 'include') diff --git a/include/vcl/bitmap.hxx b/include/vcl/bitmap.hxx index 9f99467dbd5d..217a6f4f20a4 100644 --- a/include/vcl/bitmap.hxx +++ b/include/vcl/bitmap.hxx @@ -44,18 +44,15 @@ namespace o3tl enum class BmpScaleFlag { - NONE = 0, // Try to preferably use these. Default = 1, - Fast = 2, - BestQuality = 3, + Fast, + BestQuality, // Specific algorithms, use only if you really need to. - Interpolate = 4, - Super = 5, - Lanczos = 6, - BiCubic = 7, - BiLinear = 8, - Box = 9, + Interpolate, + Lanczos, + BiCubic, + BiLinear }; diff --git a/include/vcl/commandevent.hxx b/include/vcl/commandevent.hxx index 8d9496de97cb..d93cd3523d77 100644 --- a/include/vcl/commandevent.hxx +++ b/include/vcl/commandevent.hxx @@ -318,7 +318,6 @@ enum class CommandEventId CursorPos = 11, PasteSelection = 12, ModKeyChange = 13, - HangulHanjaConversion = 14, InputLanguageChange = 15, ShowDialog = 16, Media = 17, diff --git a/include/vcl/gdimtf.hxx b/include/vcl/gdimtf.hxx index d8b8d16e0e60..fed5eb7534fd 100644 --- a/include/vcl/gdimtf.hxx +++ b/include/vcl/gdimtf.hxx @@ -45,9 +45,8 @@ class Gradient; enum class MtfConversion { - NONE = 0, - N1BitThreshold = 1, - N8BitGreys = 2 + N1BitThreshold, + N8BitGreys }; diff --git a/include/vcl/print.hxx b/include/vcl/print.hxx index 77e3034bb1c9..24fd13bafa61 100644 --- a/include/vcl/print.hxx +++ b/include/vcl/print.hxx @@ -52,10 +52,10 @@ namespace vcl { enum class PrinterSupport { - SetOrientation, SetPaperBin, + SetOrientation, SetPaperSize, SetPaper, - Copy, CollateCopy, - SetupDialog, Fax, Pdf + CollateCopy, + SetupDialog }; -- cgit