From 46b4427d2e4f0df04d8047e25cd979c87d6d50cb Mon Sep 17 00:00:00 2001 From: elsid Date: Tue, 10 Jan 2023 04:13:17 +0100 Subject: [PATCH] Remove user defined constructor for Runtime --- components/interpreter/runtime.cpp | 8 -------- components/interpreter/runtime.hpp | 10 ++++------ 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/components/interpreter/runtime.cpp b/components/interpreter/runtime.cpp index 41778e9106..d14f1cc31f 100644 --- a/components/interpreter/runtime.cpp +++ b/components/interpreter/runtime.cpp @@ -6,14 +6,6 @@ namespace Interpreter { - Runtime::Runtime() - : mContext(nullptr) - , mCode(nullptr) - , mCodeSize(0) - , mPC(0) - { - } - int Runtime::getPC() const { return mPC; diff --git a/components/interpreter/runtime.hpp b/components/interpreter/runtime.hpp index f0b716ef3f..dfceaeb36f 100644 --- a/components/interpreter/runtime.hpp +++ b/components/interpreter/runtime.hpp @@ -14,15 +14,13 @@ namespace Interpreter class Runtime { - Context* mContext; - const Type_Code* mCode; - int mCodeSize; - int mPC; + Context* mContext = nullptr; + const Type_Code* mCode = nullptr; + int mCodeSize = 0; + int mPC = 0; std::vector mStack; public: - Runtime(); - int getPC() const; ///< return program counter.