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

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