diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-06 09:15:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-06 07:57:28 +0000 |
commit | bac9a5d634b333fdc2345bfd3fa852ccc5f0d73b (patch) | |
tree | 004b3ad26f5bf29bde28570d8370336377d7402a /framework/inc/uielement | |
parent | fcb0280c1023102a08c4efea43bcf08f005fa499 (diff) |
loplugin:unusedenumconstants in framework
Convert EProtocol to scoped enum and drop E_UNKNOWN_PROTOCOL.
Convert ToggleButtonToolbarController::Style to scoped enum and drop
STYLE_TOGGLEBUTTON.
Convert TargetHelper::ESpecialTarget to scoped enum and drop
E_NOT_SPECIAL.
Change-Id: I412adacac15192cf6563ce4d5e5b74bfffff4737
Reviewed-on: https://gerrit.libreoffice.org/33949
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc/uielement')
-rw-r--r-- | framework/inc/uielement/togglebuttontoolbarcontroller.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/framework/inc/uielement/togglebuttontoolbarcontroller.hxx b/framework/inc/uielement/togglebuttontoolbarcontroller.hxx index e057b0cca3eb..7d9532eea5ac 100644 --- a/framework/inc/uielement/togglebuttontoolbarcontroller.hxx +++ b/framework/inc/uielement/togglebuttontoolbarcontroller.hxx @@ -37,11 +37,10 @@ class ToggleButtonToolbarController : public ComplexToolbarController { public: - enum Style + enum class Style { - STYLE_TOGGLEBUTTON, - STYLE_DROPDOWNBUTTON, - STYLE_TOGGLE_DROPDOWNBUTTON + DropDownButton, + ToggleDropDownButton }; ToggleButtonToolbarController( const css::uno::Reference< css::uno::XComponentContext >& rxContext, @@ -65,7 +64,6 @@ class ToggleButtonToolbarController : public ComplexToolbarController private: DECL_LINK( MenuSelectHdl, Menu *, bool); - Style m_eStyle; OUString m_aCurrentSelection; std::vector< OUString > m_aDropdownMenuList; }; |