CodeBlock: In-class initialize variables

This commit is contained in:
Lioncash 2016-08-06 13:09:21 -04:00
parent facf02686a
commit 18210a65ce
1 changed files with 6 additions and 12 deletions

View File

@ -23,21 +23,15 @@ private:
virtual void PoisonMemory() = 0;
protected:
u8* region;
size_t region_size;
size_t parent_region_size;
u8* region = nullptr;
size_t region_size = 0;
size_t parent_region_size = 0;
bool m_has_child;
bool m_is_child;
CodeBlock* m_child;
bool m_has_child = false;
bool m_is_child = false;
CodeBlock* m_child = nullptr;
public:
CodeBlock()
: region(nullptr), region_size(0), parent_region_size(0), m_has_child(false),
m_is_child(false), m_child(nullptr)
{
}
virtual ~CodeBlock()
{
if (region)