diff options
author | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2015-11-23 16:42:09 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjell.ahlstedt@bredband.net> | 2015-11-23 16:42:09 +0100 |
commit | e0d25266312d4af282c7834925b42dfc9fdf9456 (patch) | |
tree | 22622369f263f4c816d945a749e3a3b1339a1090 /tests/glibmm_interface_move | |
parent | 1fef2a7cb16d1cc23b632e0e1255acadf69f7329 (diff) | |
download | glibmm-e0d25266312d4af282c7834925b42dfc9fdf9456.tar.gz |
Tests: More nullptr instead of 0
Diffstat (limited to 'tests/glibmm_interface_move')
-rw-r--r-- | tests/glibmm_interface_move/main.cc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/glibmm_interface_move/main.cc b/tests/glibmm_interface_move/main.cc index 28b8e8fb..31d3f85d 100644 --- a/tests/glibmm_interface_move/main.cc +++ b/tests/glibmm_interface_move/main.cc @@ -26,9 +26,16 @@ test_Iface_get_type (void) { const GTypeInfo info = { - sizeof (TestIface), /* class_size */ - test_Iface_init, /* base_init */ - 0, 0, 0, 0, 0, 0, 0, 0 + sizeof (TestIface), // class_size + test_Iface_init, // base_init + nullptr, // base_finalize + nullptr, // class_init + nullptr, // class_finalize + nullptr, // class_data + 0, // instance_size + 0, // n_preallocs + nullptr, // instance_init + nullptr // value_table }; type = g_type_register_static (G_TYPE_INTERFACE, "TestIface", @@ -187,7 +194,7 @@ public: //A real application would never make the constructor public. //It would instead have a protected constructor and a public create() method. DerivedObject(int i) - : Glib::ObjectBase(0), + : Glib::ObjectBase(nullptr), Glib::Object(Glib::ConstructParams(derived_object_class_.init())), i_(i) { |