From e54371f2143cd2c28b349b1850590f300e3bee30 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 12 Jun 2024 20:54:58 +0200 Subject: smol cleanup --- NodeInput.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'NodeInput.h') diff --git a/NodeInput.h b/NodeInput.h index f277130..4bd7b59 100644 --- a/NodeInput.h +++ b/NodeInput.h @@ -10,32 +10,35 @@ public: ~NodeInput() = default; protected: - NodeInput(const char * type) : Node(type) {} + using Node::Node; }; class NodeInputLow : public NodeInput { +public: + virtual NodeInputLow * clone() const; + protected: SignalLevel level(); - NodeInputLow(const char * type) : NodeInput(type) {} - NodeInputLow * clone() const; + using NodeInput::NodeInput; + // NodeInputLow(const char * type) : NodeInput(type) {} private: NodeInputLow(const NodeInputLow *) : NodeInput() {} - using NodeInput::NodeInput; constexpr static const char * type = "input_low"; static NodeInputLow instance; }; class NodeInputHigh : public NodeInput { +public: + virtual NodeInputHigh * clone() const; + protected: - NodeInputHigh(const char * type) : NodeInput(type) {} + SignalLevel level(); + using NodeInput::NodeInput; + // NodeInputHigh(const char * type) : NodeInput(type) {} private: - SignalLevel level(); NodeInputHigh(const NodeInputHigh *) : NodeInput() {} - NodeInputHigh * clone() const; - - using NodeInput::NodeInput; constexpr static const char * type = "input_high"; static NodeInputHigh instance; }; -- cgit v1.2.3