mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #919 from ssakash/coverity_init
Coverity: Initialize class members
This commit is contained in:
commit
50e6306331
|
@ -77,7 +77,7 @@ public:
|
||||||
bool Enabled;
|
bool Enabled;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
BaseTraceLogSource() {}
|
BaseTraceLogSource() : m_Descriptor(NULL), Enabled(false) {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TraceLog_ImplementBaseAPI(BaseTraceLogSource)
|
TraceLog_ImplementBaseAPI(BaseTraceLogSource)
|
||||||
|
|
|
@ -179,7 +179,10 @@ void InputIsoFile::_init()
|
||||||
|
|
||||||
m_read_inprogress = false;
|
m_read_inprogress = false;
|
||||||
m_read_count = 0;
|
m_read_count = 0;
|
||||||
|
ReadUnit = 0;
|
||||||
|
m_current_lsn = -1;
|
||||||
m_read_lsn = -1;
|
m_read_lsn = -1;
|
||||||
|
m_reader = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tests the specified filename to see if it is a supported ISO type. This function typically
|
// Tests the specified filename to see if it is a supported ISO type. This function typically
|
||||||
|
|
|
@ -48,7 +48,6 @@ protected:
|
||||||
AsyncFileReader* m_reader;
|
AsyncFileReader* m_reader;
|
||||||
|
|
||||||
s32 m_current_lsn;
|
s32 m_current_lsn;
|
||||||
uint m_current_count;
|
|
||||||
|
|
||||||
isoType m_type;
|
isoType m_type;
|
||||||
u32 m_flags;
|
u32 m_flags;
|
||||||
|
|
|
@ -65,9 +65,6 @@ struct SysTraceLogDescriptor
|
||||||
// logging volume).
|
// logging volume).
|
||||||
class SysTraceLog : public TextFileTraceLog
|
class SysTraceLog : public TextFileTraceLog
|
||||||
{
|
{
|
||||||
public:
|
|
||||||
const char* PrePrefix;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TraceLog_ImplementBaseAPI(SysTraceLog)
|
TraceLog_ImplementBaseAPI(SysTraceLog)
|
||||||
|
|
||||||
|
@ -77,12 +74,6 @@ public:
|
||||||
|
|
||||||
void DoWrite( const char *fmt ) const;
|
void DoWrite( const char *fmt ) const;
|
||||||
|
|
||||||
SysTraceLog& SetPrefix( const char* name )
|
|
||||||
{
|
|
||||||
PrePrefix = name;
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class SysTraceLog_EE : public SysTraceLog
|
class SysTraceLog_EE : public SysTraceLog
|
||||||
|
|
|
@ -206,7 +206,7 @@ public:
|
||||||
private:
|
private:
|
||||||
DisassemblyEntry* getEntry(u32 address);
|
DisassemblyEntry* getEntry(u32 address);
|
||||||
std::map<u32,DisassemblyEntry*> entries;
|
std::map<u32,DisassemblyEntry*> entries;
|
||||||
DebugInterface* cpu;
|
DebugInterface* cpu = NULL;
|
||||||
static int maxParamChars;
|
static int maxParamChars;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -47,22 +47,12 @@ protected:
|
||||||
// A list of menu items belonging to this plugin's menu.
|
// A list of menu items belonging to this plugin's menu.
|
||||||
MenuItemAddonList m_PluginMenuItems;
|
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:
|
public:
|
||||||
PluginsEnum_t PluginId;
|
PluginsEnum_t PluginId;
|
||||||
wxMenu& MyMenu;
|
wxMenu& MyMenu;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PerPluginMenuInfo() : MyMenu( *new wxMenu() )
|
PerPluginMenuInfo() : MyMenu(*new wxMenu()), PluginId (PluginId_Count) {}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual ~PerPluginMenuInfo() throw();
|
virtual ~PerPluginMenuInfo() throw();
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,9 @@ bool RemoveDirectory( const wxString& dirname );
|
||||||
FolderMemoryCard::FolderMemoryCard() {
|
FolderMemoryCard::FolderMemoryCard() {
|
||||||
m_slot = 0;
|
m_slot = 0;
|
||||||
m_isEnabled = false;
|
m_isEnabled = false;
|
||||||
|
m_performFileWrites = false;
|
||||||
|
m_framesUntilFlush = 0;
|
||||||
|
m_timeLastWritten = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void FolderMemoryCard::InitializeInternalData() {
|
void FolderMemoryCard::InitializeInternalData() {
|
||||||
|
|
|
@ -28,8 +28,8 @@ namespace Panels
|
||||||
wxStaticBoxSizer* m_miscGroup;
|
wxStaticBoxSizer* m_miscGroup;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BaseCpuLogOptionsPanel( wxWindow* parent, const wxString& title, wxOrientation orient=wxVERTICAL )
|
BaseCpuLogOptionsPanel(wxWindow* parent, const wxString& title, wxOrientation orient = wxVERTICAL)
|
||||||
: CheckedStaticBox( parent, orient, title ) {}
|
: CheckedStaticBox(parent, orient, title), m_miscGroup(NULL){}
|
||||||
|
|
||||||
virtual wxStaticBoxSizer* GetMiscGroup() const { return m_miscGroup; }
|
virtual wxStaticBoxSizer* GetMiscGroup() const { return m_miscGroup; }
|
||||||
virtual CheckedStaticBox* GetStaticBox( const wxString& subgroup ) const=0;
|
virtual CheckedStaticBox* GetStaticBox( const wxString& subgroup ) const=0;
|
||||||
|
|
|
@ -190,6 +190,8 @@ Panels::BaseMcdListPanel::BaseMcdListPanel( wxWindow* parent )
|
||||||
);
|
);
|
||||||
|
|
||||||
m_listview = NULL;
|
m_listview = NULL;
|
||||||
|
s_leftside_buttons = NULL;
|
||||||
|
s_rightside_buttons = NULL;
|
||||||
|
|
||||||
m_btn_Refresh = new wxButton( this, wxID_ANY, _("Refresh list") );
|
m_btn_Refresh = new wxButton( this, wxID_ANY, _("Refresh list") );
|
||||||
|
|
||||||
|
|
|
@ -62,11 +62,14 @@ struct McdSlotItem
|
||||||
|
|
||||||
McdSlotItem()
|
McdSlotItem()
|
||||||
{
|
{
|
||||||
Slot = -1;
|
Slot = -1;
|
||||||
|
SizeInMB = 0;
|
||||||
|
Type = MemoryCard_None;
|
||||||
|
|
||||||
IsPSX = false;
|
IsPSX = false;
|
||||||
IsPresent = false;
|
IsPresent = false;
|
||||||
IsEnabled = false;
|
IsEnabled = false;
|
||||||
|
IsFormatted = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -227,7 +227,7 @@ protected:
|
||||||
IMPLEMENT_DYNAMIC_CLASS(ApplyPluginsDialog, WaitForTaskDialog)
|
IMPLEMENT_DYNAMIC_CLASS(ApplyPluginsDialog, WaitForTaskDialog)
|
||||||
|
|
||||||
ApplyPluginsDialog::ApplyPluginsDialog( BaseApplicableConfigPanel* panel )
|
ApplyPluginsDialog::ApplyPluginsDialog( BaseApplicableConfigPanel* panel )
|
||||||
: WaitForTaskDialog( _("Applying settings...") )
|
: WaitForTaskDialog(_("Applying settings...")), m_panel(NULL)
|
||||||
{
|
{
|
||||||
GetSysExecutorThread().PostEvent( new SysExecEvent_ApplyPlugins( this, m_sync ) );
|
GetSysExecutorThread().PostEvent( new SysExecEvent_ApplyPlugins( this, m_sync ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -2982,6 +2982,7 @@ bool GSState::IsMipMapActive()
|
||||||
GSState::GSTransferBuffer::GSTransferBuffer()
|
GSState::GSTransferBuffer::GSTransferBuffer()
|
||||||
{
|
{
|
||||||
x = y = 0;
|
x = y = 0;
|
||||||
|
overflow = false;
|
||||||
start = end = total = 0;
|
start = end = total = 0;
|
||||||
buff = (uint8*)_aligned_malloc(1024 * 1024 * 4, 32);
|
buff = (uint8*)_aligned_malloc(1024 * 1024 * 4, 32);
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,11 +110,18 @@ public:
|
||||||
|
|
||||||
Portaudio()
|
Portaudio()
|
||||||
{
|
{
|
||||||
m_ApiId=-1;
|
|
||||||
m_SuggestedLatencyMinimal = true;
|
m_SuggestedLatencyMinimal = true;
|
||||||
|
m_UseHardware = false;
|
||||||
|
m_WasapiExclusiveMode = false;
|
||||||
|
started = false;
|
||||||
|
stream = NULL;
|
||||||
|
ActualPaCallback = NULL;
|
||||||
|
m_ApiId=-1;
|
||||||
m_SuggestedLatencyMS = 20;
|
m_SuggestedLatencyMS = 20;
|
||||||
|
|
||||||
actualUsedChannels = 0;
|
actualUsedChannels = 0;
|
||||||
|
writtenSoFar = 0;
|
||||||
|
writtenLastTime = 0;
|
||||||
|
availableLastTime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
s32 Init()
|
s32 Init()
|
||||||
|
|
Loading…
Reference in New Issue