[gnome-software/wip/iainl/ubuntu-xenial] trivial: Whitespace fixes
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/iainl/ubuntu-xenial] trivial: Whitespace fixes
- Date: Tue, 12 Apr 2016 10:50:44 +0000 (UTC)
commit 00a1751bd260af90d3661b2614da3a85fd518f48
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 dc8407e..1b22da1 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]