diff --git a/src/Eval.cpp b/src/Eval.cpp index ea1f31a1d..7a4d9fc61 100644 --- a/src/Eval.cpp +++ b/src/Eval.cpp @@ -104,7 +104,6 @@ static bool namedConstants (const std::string& name, Variant& value) //////////////////////////////////////////////////////////////////////////////// Eval::Eval () -: _debug (false) { addSource (namedConstants); } @@ -225,8 +224,7 @@ void Eval::evaluatePostfixStack ( // This is stack used by the postfix evaluator. std::vector values; - - for (auto& token : tokens) + for (const auto& token : tokens) { // Unary operators. if (token.second == Lexer::Type::op && @@ -861,4 +859,3 @@ std::string Eval::dump ( } //////////////////////////////////////////////////////////////////////////////// - diff --git a/src/Eval.h b/src/Eval.h index 46efab2bf..abf53a45f 100644 --- a/src/Eval.h +++ b/src/Eval.h @@ -36,9 +36,6 @@ class Eval { public: Eval (); - Eval (const Eval&); // Not implemented. - Eval& operator= (const Eval&); // Not implemented. - bool operator== (const Eval&); // Not implemented. void addSource (bool (*fn)(const std::string&, Variant&)); void evaluateInfixExpression (const std::string&, Variant&) const; @@ -69,13 +66,9 @@ private: std::string dump (std::vector >&) const; private: - std::vector _sources; - bool _debug; - std::vector > _compiled; + std::vector _sources {}; + bool _debug {false}; + std::vector > _compiled {}; }; - - #endif - -////////////////////////////////////////////////////////////////////////////////