diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-08 15:21:46 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-05-12 06:14:46 +0000 |
commit | 4c665178f49952138835fd318edef8978ac806e3 (patch) | |
tree | e9abf7d5c8beb4e4b2333daa44bbae8d4a9f4563 /vcl/source/window/menu.cxx | |
parent | 3fd5f8919ec2256c70ff26c14cb9f8065c5cb2f1 (diff) |
convert SYMBOL_DRAW constants to scoped enum
Change-Id: I1a2200782941b1c7b826fd9fb03193e009cce697
Reviewed-on: https://gerrit.libreoffice.org/15676
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/window/menu.cxx')
-rw-r--r-- | vcl/source/window/menu.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx index 8a40d84ce2e4..b8e9c98eb748 100644 --- a/vcl/source/window/menu.cxx +++ b/vcl/source/window/menu.cxx @@ -1809,7 +1809,7 @@ void Menu::ImplPaint( vcl::Window* pWin, sal_uInt16 nBorder, long nStartY, MenuI if (IsMenuBar()) nTextOffsetY += (aOutSz.Height()-pData->aSz.Height()) / 2; sal_uInt16 nTextStyle = 0; - sal_uInt16 nSymbolStyle = 0; + DrawSymbolFlags nSymbolStyle = DrawSymbolFlags::NONE; sal_uInt16 nImageStyle = 0; // submenus without items are not disabled when no items are @@ -1819,7 +1819,7 @@ void Menu::ImplPaint( vcl::Window* pWin, sal_uInt16 nBorder, long nStartY, MenuI if ( !pData->bEnabled ) { nTextStyle |= TEXT_DRAW_DISABLE; - nSymbolStyle |= SYMBOL_DRAW_DISABLE; + nSymbolStyle |= DrawSymbolFlags::Disable; nImageStyle |= IMAGE_DRAW_DISABLE; } |