What is the best way to default construct an object.
- From: Jeff Franks <jcf tpg com au>
- To: gtk-devel-list gnome org
- Subject: What is the best way to default construct an object.
- Date: Fri, 02 Nov 2001 15:13:43 +1100
I need some advice:
I have a factory function that creates default C++ wrappers for objects
derived from GObject. At some point later specific values are set
depending on the object. Which would be to best function to use for
default construction.
g_type_create_instance(GType);
or
g_object_new(GType, 0);
Jeff.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]