VideoBackends: Add the explicit keyword to WorkItem-derived class constructors

Prevents implicit conversions
This commit is contained in:
Lioncash
2017-09-02 17:32:26 -04:00
parent 5059332d95
commit 2d45204f12
4 changed files with 9 additions and 9 deletions

View File

@ -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;