mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-24 11:11:38 +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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue