diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-05-29 12:43:29 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-30 06:36:08 +0000 |
commit | a6dacbe1d7d17283c20c75d3c97f72a0f876a716 (patch) | |
tree | 9050aa70a1c7d6e8737d57d972d3946c8b2e960a /include/vcl/field.hxx | |
parent | 98d09839353325afefea2dad549b1f9adf10aea1 (diff) |
Convert TimeFormat to scoped enum
Change-Id: Ia40c70493a61886c76e515c3b2953243025c2438
Reviewed-on: https://gerrit.libreoffice.org/25602
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl/field.hxx')
-rw-r--r-- | include/vcl/field.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx index 75f82070f78d..d97e40a9cce3 100644 --- a/include/vcl/field.hxx +++ b/include/vcl/field.hxx @@ -366,12 +366,18 @@ public: class VCL_DLLPUBLIC TimeFormatter : public FormatterBase { +public: + enum class TimeFormat { + Hour12, + Hour24 + }; + private: tools::Time maLastTime; tools::Time maMin; tools::Time maMax; TimeFieldFormat meFormat; - sal_uInt16 mnTimeFormat; + TimeFormat mnTimeFormat; bool mbDuration; bool mbEnforceValidValue; @@ -389,11 +395,6 @@ protected: public: - enum TimeFormat { - HOUR_12, - HOUR_24 - }; - virtual ~TimeFormatter(); virtual void Reformat() override; |