Commit 310c6201 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[master] Initialize base_obj in constructor (cppcheck report)

parent 32f964bd
......@@ -34,7 +34,11 @@ namespace {
// The s_* Class simply covers one instantiation of the object
class s_ZoneTableAccessor : public PyObject {
public:
s_ZoneTableAccessor() : cppobj(ConstZoneTableAccessorPtr()) {};
s_ZoneTableAccessor() :
cppobj(ConstZoneTableAccessorPtr()),
base_obj(NULL)
{}
ConstZoneTableAccessorPtr cppobj;
// This is a reference to a base object; if the object of this class
// depends on another object to be in scope during its lifetime,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment