GUI: Initialize all class members

CID 146990 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)6. uninit_member: Non-static class member PluginId is not initialized in this constructor nor in any functions that it calls.
This commit is contained in:
Akash 2015-10-23 20:13:42 +05:30
parent 55a88688a3
commit f95664e846
1 changed files with 3 additions and 13 deletions

View File

@ -47,22 +47,12 @@ protected:
// A list of menu items belonging to this plugin's menu.
MenuItemAddonList m_PluginMenuItems;
// Base index for inserting items, usually points to the position
// after the heading entry and separator.
int m_InsertIndexBase;
// Current index for inserting menu items; increments with each item
// added by a plugin.
int m_InsertIndexCur;
public:
PluginsEnum_t PluginId;
wxMenu& MyMenu;
wxMenu& MyMenu;
public:
PerPluginMenuInfo() : MyMenu( *new wxMenu() )
{
}
PerPluginMenuInfo() : MyMenu(*new wxMenu()), PluginId (PluginId_Count) {}
virtual ~PerPluginMenuInfo() throw();
@ -226,4 +216,4 @@ protected:
friend class Pcsx2App;
};
extern int GetPluginMenuId_Settings( PluginsEnum_t pid );
extern int GetPluginMenuId_Settings( PluginsEnum_t pid );