ExpressionParser: Mark constructors explicit where applicable

Makes for consistency with the surrounding code.
This commit is contained in:
Lioncash 2023-12-12 14:00:17 -05:00
parent ea71a76ea9
commit a5bbeb721a
1 changed files with 3 additions and 3 deletions

View File

@ -438,7 +438,7 @@ protected:
class LiteralReal : public LiteralExpression class LiteralReal : public LiteralExpression
{ {
public: public:
LiteralReal(ControlState value) : m_value(value) {} explicit LiteralReal(ControlState value) : m_value(value) {}
ControlState GetValue() const override { return m_value; } ControlState GetValue() const override { return m_value; }
@ -460,7 +460,7 @@ static ParseResult MakeLiteralExpression(Token token)
class VariableExpression : public Expression class VariableExpression : public Expression
{ {
public: public:
VariableExpression(std::string name) : m_name(name) {} explicit VariableExpression(std::string name) : m_name(name) {}
ControlState GetValue() const override { return m_variable_ptr ? *m_variable_ptr : 0; } ControlState GetValue() const override { return m_variable_ptr ? *m_variable_ptr : 0; }
@ -485,7 +485,7 @@ protected:
class HotkeyExpression : public Expression class HotkeyExpression : public Expression
{ {
public: public:
HotkeyExpression(std::vector<std::unique_ptr<ControlExpression>> inputs) explicit HotkeyExpression(std::vector<std::unique_ptr<ControlExpression>> inputs)
: m_modifiers(std::move(inputs)) : m_modifiers(std::move(inputs))
{ {
m_final_input = std::move(m_modifiers.back()); m_final_input = std::move(m_modifiers.back());