mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07: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