[gnome-software: 20/29] gs-updates-page: Simplify constructor slightly




commit 5f8a059a5959500cb14e0bdfec353db5f63573d1
Author: Philip Withnall <pwithnall endlessos org>
Date:   Thu Jan 21 13:28:44 2021 +0000

    gs-updates-page: Simplify constructor slightly
    
    This is functionally equivalent.
    
    Signed-off-by: Philip Withnall <pwithnall endlessos org>

 src/gs-updates-page.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 5f849733e..bf5dd1ac9 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -1444,7 +1444,5 @@ gs_updates_page_init (GsUpdatesPage *self)
 GsUpdatesPage *
 gs_updates_page_new (void)
 {
-       GsUpdatesPage *self;
-       self = g_object_new (GS_TYPE_UPDATES_PAGE, NULL);
-       return GS_UPDATES_PAGE (self);
+       return GS_UPDATES_PAGE (g_object_new (GS_TYPE_UPDATES_PAGE, NULL));
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]