mirror of https://github.com/PCSX2/pcsx2.git
MemoryCard: Fix variable initializations.
Codacy Warning: Variable 'variable' is assigned in constructor body. Consider performing initialization in initialization list.
This commit is contained in:
parent
6eb7f5f962
commit
97aaf3ef9b
|
@ -265,9 +265,9 @@ std::string FileMcd_GetDefaultName(uint slot)
|
|||
}
|
||||
|
||||
FileMemoryCard::FileMemoryCard()
|
||||
: m_chkaddr(0)
|
||||
{
|
||||
memset8<0xff>(m_effeffs);
|
||||
m_chkaddr = 0;
|
||||
}
|
||||
|
||||
void FileMemoryCard::Open()
|
||||
|
|
|
@ -123,13 +123,13 @@ time_t MemoryCardFileEntryDateTime::ToTime() const
|
|||
}
|
||||
|
||||
FolderMemoryCard::FolderMemoryCard()
|
||||
: m_framesUntilFlush(0)
|
||||
, m_timeLastWritten(0)
|
||||
, m_slot(0)
|
||||
, m_isEnabled(false)
|
||||
, m_performFileWrites(false)
|
||||
, m_filteringEnabled(false)
|
||||
{
|
||||
m_slot = 0;
|
||||
m_isEnabled = false;
|
||||
m_performFileWrites = false;
|
||||
m_framesUntilFlush = 0;
|
||||
m_timeLastWritten = 0;
|
||||
m_filteringEnabled = false;
|
||||
}
|
||||
|
||||
void FolderMemoryCard::InitializeInternalData()
|
||||
|
|
Loading…
Reference in New Issue