mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-02 23:21:41 +00:00
VideoBackends: Add the explicit keyword to WorkItem-derived class constructors
Prevents implicit conversions
This commit is contained in:
parent
5059332d95
commit
2d45204f12
4 changed files with 9 additions and 9 deletions
Source/Core/VideoBackends/OGL
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue