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:
parent
9c8df09475
commit
46b4427d2e
@ -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;
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user