summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/menu.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 096faeeb54f9..075c53b8fb16 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -2805,9 +2805,9 @@ PopupMenu::PopupMenu( const ResId& rResId )
rResId.SetRT( RSC_MENU );
GetRes( rResId );
- sal_uLong nObjMask = ReadLongRes();
+ RscMenu nObjMask = (RscMenu)ReadLongRes();
- if( nObjMask & RSC_MENU_ITEMS )
+ if( nObjMask & RscMenu::Items )
{
sal_uLong nObjFollows = ReadLongRes();
// insert menu items
@@ -2818,11 +2818,11 @@ PopupMenu::PopupMenu( const ResId& rResId )
}
}
- if( nObjMask & RSC_MENU_TEXT )
+ if( nObjMask & RscMenu::Text )
{
aTitleText = ReadStringRes();
}
- if( nObjMask & RSC_MENU_DEFAULTITEMID )
+ if( nObjMask & RscMenu::DefaultItemId )
SetDefaultItem( sal::static_int_cast<sal_uInt16>(ReadLongRes()) );
}