SPU2: Fix class has a constructor with 1 argument that is not explicit warnings.

Codacy.
This commit is contained in:
lightningterror 2023-01-05 11:56:16 +01:00
parent 0cd5b9072c
commit ee3cacffd7
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ private:
public: public:
ConvertedSampleReader() = delete; ConvertedSampleReader() = delete;
ConvertedSampleReader(u64* pWritten) explicit ConvertedSampleReader(u64* pWritten)
: written(pWritten) : written(pWritten)
{ {
} }

View File

@ -57,7 +57,7 @@ private:
return state.SamplesPlayed & (m_BufferSize - 1); return state.SamplesPlayed & (m_BufferSize - 1);
} }
BaseStreamingVoice(uint numChannels) explicit BaseStreamingVoice(uint numChannels)
: m_nBuffers(2) : m_nBuffers(2)
, m_nChannels(numChannels) , m_nChannels(numChannels)
, m_BufferSize(SndOutPacketSize * m_nChannels * PacketsPerBuffer) , m_BufferSize(SndOutPacketSize * m_nChannels * PacketsPerBuffer)