mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
VideoBackends: Add the explicit keyword to WorkItem-derived class constructors
Prevents implicit conversions
This commit is contained in:
@ -67,7 +67,7 @@ private:
|
||||
class VertexShaderCompilerWorkItem : public VideoCommon::AsyncShaderCompiler::WorkItem
|
||||
{
|
||||
public:
|
||||
VertexShaderCompilerWorkItem(const VertexShaderUid& uid);
|
||||
explicit VertexShaderCompilerWorkItem(const VertexShaderUid& uid);
|
||||
~VertexShaderCompilerWorkItem() override;
|
||||
|
||||
bool Compile() override;
|
||||
@ -82,7 +82,7 @@ private:
|
||||
class UberVertexShaderCompilerWorkItem : public VideoCommon::AsyncShaderCompiler::WorkItem
|
||||
{
|
||||
public:
|
||||
UberVertexShaderCompilerWorkItem(const UberShader::VertexShaderUid& uid);
|
||||
explicit UberVertexShaderCompilerWorkItem(const UberShader::VertexShaderUid& uid);
|
||||
~UberVertexShaderCompilerWorkItem() override;
|
||||
|
||||
bool Compile() override;
|
||||
|
Reference in New Issue
Block a user