[gnome-calendar] main: simplify code even more
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] main: simplify code even more
- Date: Sat, 9 Sep 2017 00:04:19 +0000 (UTC)
commit 9c50ae9b9cc6994d9f7a27c9d67dda5b4d96adc8
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Sep 8 21:03:32 2017 -0300
main: simplify code even more
src/main.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index abb6c88..b612072 100644
--- a/src/main.c
+++ b/src/main.c
@@ -27,8 +27,7 @@ int
main (int argc,
char *argv[])
{
- GcalApplication *app;
- int status;
+ g_autoptr (GcalApplication) app;
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
@@ -37,8 +36,6 @@ main (int argc,
#endif
app = gcal_application_new ();
- status = g_application_run (G_APPLICATION (app), argc, argv);
- g_object_unref (app);
- return status;
+ return g_application_run (G_APPLICATION (app), argc, argv);;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]