Re: BonoboUIComponent missing preconditions
- From: Jonathan Blandford <jrb redhat com>
- To: Ettore Perazzoli <ettore ximian com>
- Cc: Michael Meeks <michael ximian com>, gnome-components-list gnome org
- Subject: Re: BonoboUIComponent missing preconditions
- Date: 03 Jul 2001 00:12:43 -0400
Ettore Perazzoli <ettore ximian com> writes:
> > Please remove the redundant:
> >
> > ** g_return_if_fail (a != NULL); **
> > g_return_if_fail (BONOBO_IS_FOO (a));
> >
> > since that check is integrated, and we want to keep line count
> > low and readable.
>
> The standard way in the GNOME/GTK world is to do both, but whatever.
In GTK+-2.0 we've tried to remove the a != NULL checks in favor of just
GTK_IS_FOO (a) checks, as the a != NULL checks are now redundant. In
most cases this is not a bottleneck, though it can be if used
inappropriately, etc...
Thanks,
-Jonathan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]