mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-13 00:58:29 +02:00
VideoBackends: Add the explicit keyword to WorkItem-derived class constructors
Prevents implicit conversions
This commit is contained in:
@ -165,7 +165,7 @@ private:
|
||||
class ShaderCompileWorkItem : public VideoCommon::AsyncShaderCompiler::WorkItem
|
||||
{
|
||||
public:
|
||||
ShaderCompileWorkItem(const SHADERUID& uid);
|
||||
explicit ShaderCompileWorkItem(const SHADERUID& uid);
|
||||
|
||||
bool Compile() override;
|
||||
void Retrieve() override;
|
||||
@ -178,7 +178,7 @@ private:
|
||||
class UberShaderCompileWorkItem : public VideoCommon::AsyncShaderCompiler::WorkItem
|
||||
{
|
||||
public:
|
||||
UberShaderCompileWorkItem(const UBERSHADERUID& uid);
|
||||
explicit UberShaderCompileWorkItem(const UBERSHADERUID& uid);
|
||||
|
||||
bool Compile() override;
|
||||
void Retrieve() override;
|
||||
|
Reference in New Issue
Block a user