diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-10 10:14:16 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-10 09:57:14 +0000 |
commit | 57f84e5b1f27a442981602bc428270a5ecb95959 (patch) | |
tree | fcb7b5881b50bf3fd97bfa2b7521d43d0f06fdb4 /framework/source/layoutmanager | |
parent | effde80f670c60986a92ca0f1c5c9922eb17908d (diff) |
Convert TOOLBOX_MENUTYPE_ to scoped enum
Change-Id: I8eb25fc274b45b8add04dfc03e4b52f130ad04de
Reviewed-on: https://gerrit.libreoffice.org/24827
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'framework/source/layoutmanager')
-rw-r--r-- | framework/source/layoutmanager/toolbarlayoutmanager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/layoutmanager/toolbarlayoutmanager.cxx b/framework/source/layoutmanager/toolbarlayoutmanager.cxx index e264e97db947..e8779f1d9778 100644 --- a/framework/source/layoutmanager/toolbarlayoutmanager.cxx +++ b/framework/source/layoutmanager/toolbarlayoutmanager.cxx @@ -537,11 +537,11 @@ bool ToolbarLayoutManager::createToolbar( const OUString& rResourceURL ) if ( pWindow && pWindow->GetType() == WINDOW_TOOLBOX ) { ToolBox* pToolbar = static_cast<ToolBox *>(pWindow); - sal_uInt16 nMenuType = pToolbar->GetMenuType(); + ToolBoxMenuType nMenuType = pToolbar->GetMenuType(); if ( aCmdOptions.Lookup( SvtCommandOptions::CMDOPTION_DISABLED, "ConfigureDialog" )) - pToolbar->SetMenuType( nMenuType & ~TOOLBOX_MENUTYPE_CUSTOMIZE ); + pToolbar->SetMenuType( nMenuType & ~ToolBoxMenuType::Customize ); else - pToolbar->SetMenuType( nMenuType | TOOLBOX_MENUTYPE_CUSTOMIZE ); + pToolbar->SetMenuType( nMenuType | ToolBoxMenuType::Customize ); } bNotify = true; |