From a75cbeb129879834390d9963d631f861d3c028bd Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 10 Jun 2021 13:22:17 +0200 Subject: [PATCH] Remove useless inlined functions in ParseComponents.hpp --- src/headers/parsing/ParseComponents.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/headers/parsing/ParseComponents.hpp b/src/headers/parsing/ParseComponents.hpp index 1aae6ff..7cee510 100644 --- a/src/headers/parsing/ParseComponents.hpp +++ b/src/headers/parsing/ParseComponents.hpp @@ -12,19 +12,19 @@ class ParseComponent {}; struct ParseTree: public ParseComponent { private: mutable unsigned int compCount = 0; - inline void addComp(const auto& comp) const { - subComponents.push_back(comp); ++compCount; - }; inline void addAllComps(const auto& comps) const { for (const auto& comp: comps) addComp(comp); } protected: mutable vector subComponents; public: constexpr unsigned int getCompCount() const { return compCount; } auto& getComponents() const { return subComponents; } - void add(const ParseComponent& component) { addComp(component); }; - void addAll(const vector& components) { addAllComps(components); } - void operator<<(const ParseComponent& component) { add(component); } - explicit ParseTree(const ParseComponent& element): subComponents() { addComp(element); } - ParseTree(const initializer_list& elements): subComponents() { addAllComps(elements); } + void add(const ParseComponent& component) const { + subComponents.push_back(component); + ++compCount; + }; void addAll(const vector& components) const { + for (const auto& comp: components) add(comp); + }; void operator<<(const ParseComponent& component) const { add(component); } + explicit ParseTree(const ParseComponent& element): subComponents() { add(element); } + ParseTree(const initializer_list& elements): subComponents() { addAll(elements); } ParseTree(): subComponents() {}; ~ParseTree() = default; };