GNOME Bugzilla – Bug 605667
gobject: Don't use G_PARAM_SPEC_VALUE_TYPE when we know the pspec is valid
Last modified: 2010-02-23 17:48:50 UTC
G_PARAM_SPEC_VALUE_TYPE does an extra call to make sure the argument is a valid GParamSpec. This is unneeded in many places where we know we're dealing with a valid GParamSpec.
Created attachment 150537 [details] [review] gobject: Don't use G_PARAM_SPEC_VALUE_TYPE when we know the pspec is valid
Looks like a good idea to me.
Created attachment 154478 [details] [review] gobject: Don't use G_PARAM_SPEC_VALUE_TYPE when we know the pspec is valid
The new patch is updated to current git head. Ok to apply ?
Comment on attachment 154478 [details] [review] gobject: Don't use G_PARAM_SPEC_VALUE_TYPE when we know the pspec is valid Yes, looks fine.
commit cecf61d1c3e8ff07b1595641bad85fb9f9b03ddf Author: Edward Hervey <bilboed@bilboed.com> Date: Mon Dec 7 11:23:55 2009 +0100 gobject: Don't use G_PARAM_SPEC_VALUE_TYPE when we know the pspec is valid https://bugzilla.gnome.org/show_bug.cgi?id=605667