[evolution-exchange] Remove NULL checks for GObject methods.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-exchange] Remove NULL checks for GObject methods.
- Date: Sat, 12 Feb 2011 17:55:55 +0000 (UTC)
commit 6d91d917d0e16d0fdbc42b59fa647940c042fbfa
Author: Matthew Barnes <mbarnes redhat com>
Date: Sat Feb 12 11:04:25 2011 -0500
Remove NULL checks for GObject methods.
As of GLib 2.28 all GObject virtual methods, including constructed(),
are safe to chain up to unconditionally. Remove unnecessary checks.
calendar/e-cal-backend-exchange.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/calendar/e-cal-backend-exchange.c b/calendar/e-cal-backend-exchange.c
index 0bf6436..b0bd792 100644
--- a/calendar/e-cal-backend-exchange.c
+++ b/calendar/e-cal-backend-exchange.c
@@ -2333,8 +2333,8 @@ finalize (GObject *object)
}
g_free (cbex->priv);
- if (G_OBJECT_CLASS (parent_class)->finalize)
- G_OBJECT_CLASS (parent_class)->finalize (object);
+ /* Chain up to parent's finalize() method. */
+ G_OBJECT_CLASS (parent_class)->finalize (object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]