[gnome-software/wip/temp/ubuntu-xenial-rebased-corrected: 202/331] trivial: Whitespace fixes



commit 7f0770276ca8c12070196e2284ab3f463c43e849
Author: Richard Hughes <richard hughsie com>
Date:   Tue Apr 12 11:50:27 2016 +0100

    trivial: Whitespace fixes

 src/plugins/gs-plugin-apt.cc |   30 +++++++++++++-----------------
 1 files changed, 13 insertions(+), 17 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.cc b/src/plugins/gs-plugin-apt.cc
index 7b187c6..3c9c330 100644
--- a/src/plugins/gs-plugin-apt.cc
+++ b/src/plugins/gs-plugin-apt.cc
@@ -47,19 +47,18 @@
 #define LICENSE_URL "http://www.ubuntu.com/about/about-ubuntu/licensing";
 
 typedef struct {
-       gchar *name;
-       gchar *section;
-       gchar *architecture;
-       gchar *installed_version;
-       gchar *update_version;
-       gchar *origin;
-       gchar *release;
-       gchar *component;
-       gint installed_size;
-       gint package_size;
+       gchar           *name;
+       gchar           *section;
+       gchar           *architecture;
+       gchar           *installed_version;
+       gchar           *update_version;
+       gchar           *origin;
+       gchar           *release;
+       gchar           *component;
+       gint             installed_size;
+       gint             package_size;
 } PackageInfo;
 
-
 #include "ubuntu-unity-launcher-proxy.h"
 
 struct GsPluginPrivate {
@@ -163,11 +162,8 @@ look_at_pkg (const pkgCache::PkgIterator &P,
                return false;
 
        name = g_strdup (P.Name ());
-
        info = (PackageInfo *) g_hash_table_lookup (plugin->priv->package_info, name);
-
-       if (!info)
-       {
+       if (info == NULL) {
                info = g_new0 (PackageInfo, 1);
                info->name = name;
                g_hash_table_insert (plugin->priv->package_info, name, info);
@@ -177,9 +173,9 @@ look_at_pkg (const pkgCache::PkgIterator &P,
                // see InRelease for the fields
                if (VF.File ().Archive ())
                        info->release = g_strdup (VF.File ().Archive ());
-               if(VF.File ().Origin ())
+               if (VF.File ().Origin ())
                        info->origin = g_strdup (VF.File ().Origin ());
-               if(VF.File ().Component ())
+               if (VF.File ().Component ())
                        info->component = g_strdup (VF.File ().Component ());
                // also available: Codename, Label
                break;


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