Commit 6c00884d authored by Philip Chimento's avatar Philip Chimento Committed by Chun-wei Fan

gi: Initialize pointer members of wrapper classes

Cppcheck is newly complaining about this, perhaps because of the changes
to the `friend class` declarations.
parent c455da15
......@@ -882,6 +882,7 @@ BoxedPrototype::BoxedPrototype(GIStructInfo* info, GType gtype)
m_zero_args_constructor(-1),
m_default_constructor(-1),
m_default_constructor_name(JSID_VOID),
m_field_map(nullptr),
m_can_allocate_directly(struct_is_simple(info)) {
GJS_INC_COUNTER(boxed_prototype);
}
......
......@@ -248,7 +248,8 @@ FundamentalPrototype::FundamentalPrototype(GIObjectInfo* info, GType gtype)
m_ref_function(g_object_info_get_ref_function_pointer(info)),
m_unref_function(g_object_info_get_unref_function_pointer(info)),
m_get_value_function(g_object_info_get_get_value_function_pointer(info)),
m_set_value_function(g_object_info_get_set_value_function_pointer(info)) {
m_set_value_function(g_object_info_get_set_value_function_pointer(info)),
m_constructor_info(nullptr) {
g_assert(m_ref_function);
g_assert(m_unref_function);
g_assert(m_set_value_function);
......
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