1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00

Remove user defined constructor for Runtime

This commit is contained in:
elsid 2023-01-10 04:13:17 +01:00
parent 9c8df09475
commit 46b4427d2e
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625
2 changed files with 4 additions and 14 deletions

View File

@ -6,14 +6,6 @@
namespace Interpreter namespace Interpreter
{ {
Runtime::Runtime()
: mContext(nullptr)
, mCode(nullptr)
, mCodeSize(0)
, mPC(0)
{
}
int Runtime::getPC() const int Runtime::getPC() const
{ {
return mPC; return mPC;

View File

@ -14,15 +14,13 @@ namespace Interpreter
class Runtime class Runtime
{ {
Context* mContext; Context* mContext = nullptr;
const Type_Code* mCode; const Type_Code* mCode = nullptr;
int mCodeSize; int mCodeSize = 0;
int mPC; int mPC = 0;
std::vector<Data> mStack; std::vector<Data> mStack;
public: public:
Runtime();
int getPC() const; int getPC() const;
///< return program counter. ///< return program counter.