summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-09-02 17:32:26 -0400
committerLioncash <mathew1800@gmail.com>2017-09-02 17:35:20 -0400
commit2d45204f12a9f2ff1cb74b75160dcd391938f30c (patch)
treece992fd426f7bf3759779358fa992018bc8bcdca /Source/Core/VideoBackends/OGL/ProgramShaderCache.h
parent5059332d954df538b3f771d39435ab2ceec643de (diff)
VideoBackends: Add the explicit keyword to WorkItem-derived class constructors
Prevents implicit conversions
Diffstat (limited to 'Source/Core/VideoBackends/OGL/ProgramShaderCache.h')
-rw-r--r--Source/Core/VideoBackends/OGL/ProgramShaderCache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
index 417c0ee5fd..d45b2e4cbb 100644
--- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
+++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.h
@@ -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;