Kaydet (Commit) 609c35d9 authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#1079271 uninitialized member variables

Change-Id: I4bf9e0c7a548c0f22ce670803bc8334277f80c9e
üst 298f3808
...@@ -135,22 +135,45 @@ struct MenuItemData ...@@ -135,22 +135,45 @@ struct MenuItemData
SalMenuItem* pSalMenuItem; // access to native menu SalMenuItem* pSalMenuItem; // access to native menu
MenuItemData() : MenuItemData()
pSubMenu(NULL), pAutoSubMenu(NULL), nItemImageAngle(0), pSalMenuItem ( NULL ) : nId(0)
{} , eType(MENUITEM_DONTKNOW)
MenuItemData( const OUString& rStr, const Image& rImage ) : , nBits(0)
pSubMenu(NULL), , pSubMenu(NULL)
pAutoSubMenu(NULL), , pAutoSubMenu(NULL)
aText( rStr ), , nUserValue(0)
aImage( rImage ), , bChecked(false)
nItemImageAngle(0), , bEnabled(false)
pSalMenuItem ( NULL ) , bVisible(false)
{} , bIsTemporary(false)
~MenuItemData(); , bMirrorMode(false)
bool HasCheck() const , nItemImageAngle(0)
{ , pSalMenuItem(NULL)
return bChecked || ( nBits & ( MIB_RADIOCHECK | MIB_CHECKABLE | MIB_AUTOCHECK ) ); {
} }
MenuItemData( const OUString& rStr, const Image& rImage )
: nId(0)
, eType(MENUITEM_DONTKNOW)
, nBits(0)
, pSubMenu(NULL)
, pAutoSubMenu(NULL)
, aText(rStr)
, nUserValue(0)
, aImage(rImage)
, bChecked(false)
, bEnabled(false)
, bVisible(false)
, bIsTemporary(false)
, bMirrorMode(false)
, nItemImageAngle(0)
, pSalMenuItem(NULL)
{
}
~MenuItemData();
bool HasCheck() const
{
return bChecked || ( nBits & ( MIB_RADIOCHECK | MIB_CHECKABLE | MIB_AUTOCHECK ) );
}
}; };
MenuItemData::~MenuItemData() MenuItemData::~MenuItemData()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment