What is the best way to default construct an object.



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]