From ee3cacffd7fc4b4b09d92f054e1a131b8403d7d0 Mon Sep 17 00:00:00 2001 From: lightningterror <18107717+lightningterror@users.noreply.github.com> Date: Thu, 5 Jan 2023 11:56:16 +0100 Subject: [PATCH] SPU2: Fix class has a constructor with 1 argument that is not explicit warnings. Codacy. --- pcsx2/SPU2/SndOut_Cubeb.cpp | 2 +- pcsx2/SPU2/SndOut_XAudio2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2/SPU2/SndOut_Cubeb.cpp b/pcsx2/SPU2/SndOut_Cubeb.cpp index dd3bb0adc3..69b1d74a7a 100644 --- a/pcsx2/SPU2/SndOut_Cubeb.cpp +++ b/pcsx2/SPU2/SndOut_Cubeb.cpp @@ -53,7 +53,7 @@ private: public: ConvertedSampleReader() = delete; - ConvertedSampleReader(u64* pWritten) + explicit ConvertedSampleReader(u64* pWritten) : written(pWritten) { } diff --git a/pcsx2/SPU2/SndOut_XAudio2.cpp b/pcsx2/SPU2/SndOut_XAudio2.cpp index 50ed0d11c5..b9a712974d 100644 --- a/pcsx2/SPU2/SndOut_XAudio2.cpp +++ b/pcsx2/SPU2/SndOut_XAudio2.cpp @@ -57,7 +57,7 @@ private: return state.SamplesPlayed & (m_BufferSize - 1); } - BaseStreamingVoice(uint numChannels) + explicit BaseStreamingVoice(uint numChannels) : m_nBuffers(2) , m_nChannels(numChannels) , m_BufferSize(SndOutPacketSize * m_nChannels * PacketsPerBuffer)