[tracker/sam/uncrustify: 6/8] style: Remove spaces when calling function pointers



commit 7fb04180e7afa7df9e434a5cac224b8a58ceb1a7
Author: Sam Thursfield <sam afuera me uk>
Date:   Fri Apr 19 13:45:05 2019 +0200

    style: Remove spaces when calling function pointers
    
    I'd prefer to keep these, but Uncrustify doesn't seem to have an option
    to enable that.

 src/libtracker-data/tracker-class.c               |  2 +-
 src/libtracker-data/tracker-db-config.c           |  4 ++--
 src/libtracker-data/tracker-db-interface-sqlite.c | 28 +++++++++++------------
 src/libtracker-data/tracker-namespace.c           |  2 +-
 src/libtracker-data/tracker-ontology.c            |  2 +-
 src/libtracker-data/tracker-property.c            |  2 +-
 src/libtracker-fts/tracker-fts-config.c           |  4 ++--
 src/libtracker-miner/tracker-data-provider.c      |  6 ++---
 src/libtracker-miner/tracker-indexing-tree.c      |  2 +-
 src/tracker-store/tracker-config.c                |  4 ++--
 src/tracker/tracker-sparql.c                      |  2 +-
 11 files changed, 29 insertions(+), 29 deletions(-)
---
diff --git a/src/libtracker-data/tracker-class.c b/src/libtracker-data/tracker-class.c
index 76d5416c9..4a1b4d3f1 100644
--- a/src/libtracker-data/tracker-class.c
+++ b/src/libtracker-data/tracker-class.c
@@ -97,7 +97,7 @@ class_finalize (GObject *object)
                g_array_free (priv->last_super_classes, TRUE);
        }
 
-       (G_OBJECT_CLASS (tracker_class_parent_class)->finalize) (object);
+       (G_OBJECT_CLASS (tracker_class_parent_class)->finalize)(object);
 }
 
 TrackerClass *
diff --git a/src/libtracker-data/tracker-db-config.c b/src/libtracker-data/tracker-db-config.c
index 2b95f1532..25d58ca79 100644
--- a/src/libtracker-data/tracker-db-config.c
+++ b/src/libtracker-data/tracker-db-config.c
@@ -142,7 +142,7 @@ config_get_property (GObject    *object,
 static void
 config_finalize (GObject *object)
 {
-       (G_OBJECT_CLASS (tracker_db_config_parent_class)->finalize) (object);
+       (G_OBJECT_CLASS (tracker_db_config_parent_class)->finalize)(object);
 }
 
 static void
@@ -150,7 +150,7 @@ config_constructed (GObject *object)
 {
        GSettings *settings;
 
-       (G_OBJECT_CLASS (tracker_db_config_parent_class)->constructed) (object);
+       (G_OBJECT_CLASS (tracker_db_config_parent_class)->constructed)(object);
 
        settings = G_SETTINGS (object);
 
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c 
b/src/libtracker-data/tracker-db-interface-sqlite.c
index 5d7b6a5d5..b891696c8 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -565,7 +565,7 @@ function_sparql_regex (sqlite3_context *context,
                        return;
                }
 
-               sqlite3_set_auxdata (context, 1, regex, (void (*) (void*)) g_regex_unref);
+               sqlite3_set_auxdata (context, 1, regex, (void (*)(void*))g_regex_unref);
        }
 
        if (text != NULL) {
@@ -2606,19 +2606,19 @@ tracker_db_cursor_class_init (TrackerDBCursorClass *class)
        object_class->finalize = tracker_db_cursor_finalize;
        object_class->get_property = tracker_db_cursor_get_property;
 
-       sparql_cursor_class->get_value_type = (TrackerSparqlValueType (*) (TrackerSparqlCursor *, gint)) 
tracker_db_cursor_get_value_type;
-       sparql_cursor_class->get_variable_name = (const gchar * (*) (TrackerSparqlCursor *, gint)) 
tracker_db_cursor_get_variable_name;
-       sparql_cursor_class->get_n_columns = (gint (*) (TrackerSparqlCursor *)) 
tracker_db_cursor_get_n_columns;
-       sparql_cursor_class->get_string = (const gchar * (*) (TrackerSparqlCursor *, gint, glong*)) 
tracker_db_cursor_get_string;
-       sparql_cursor_class->next = (gboolean (*) (TrackerSparqlCursor *, GCancellable *, GError **)) 
tracker_db_cursor_iter_next;
-       sparql_cursor_class->next_async = (void (*) (TrackerSparqlCursor *, GCancellable *, 
GAsyncReadyCallback, gpointer)) tracker_db_cursor_iter_next_async;
-       sparql_cursor_class->next_finish = (gboolean (*) (TrackerSparqlCursor *, GAsyncResult *, GError **)) 
tracker_db_cursor_iter_next_finish;
-       sparql_cursor_class->rewind = (void (*) (TrackerSparqlCursor *)) tracker_db_cursor_rewind;
-       sparql_cursor_class->close = (void (*) (TrackerSparqlCursor *)) tracker_db_cursor_close;
-
-       sparql_cursor_class->get_integer = (gint64 (*) (TrackerSparqlCursor *, gint)) 
tracker_db_cursor_get_int;
-       sparql_cursor_class->get_double = (gdouble (*) (TrackerSparqlCursor *, gint)) 
tracker_db_cursor_get_double;
-       sparql_cursor_class->get_boolean = (gboolean (*) (TrackerSparqlCursor *, gint)) 
tracker_db_cursor_get_boolean;
+       sparql_cursor_class->get_value_type = (TrackerSparqlValueType (*)(TrackerSparqlCursor *, 
gint))tracker_db_cursor_get_value_type;
+       sparql_cursor_class->get_variable_name = (const gchar * (*)(TrackerSparqlCursor *, 
gint))tracker_db_cursor_get_variable_name;
+       sparql_cursor_class->get_n_columns = (gint (*)(TrackerSparqlCursor *))tracker_db_cursor_get_n_columns;
+       sparql_cursor_class->get_string = (const gchar * (*)(TrackerSparqlCursor *, gint, 
glong*))tracker_db_cursor_get_string;
+       sparql_cursor_class->next = (gboolean (*)(TrackerSparqlCursor *, GCancellable *, GError 
**))tracker_db_cursor_iter_next;
+       sparql_cursor_class->next_async = (void (*)(TrackerSparqlCursor *, GCancellable *, 
GAsyncReadyCallback, gpointer))tracker_db_cursor_iter_next_async;
+       sparql_cursor_class->next_finish = (gboolean (*)(TrackerSparqlCursor *, GAsyncResult *, GError 
**))tracker_db_cursor_iter_next_finish;
+       sparql_cursor_class->rewind = (void (*)(TrackerSparqlCursor *))tracker_db_cursor_rewind;
+       sparql_cursor_class->close = (void (*)(TrackerSparqlCursor *))tracker_db_cursor_close;
+
+       sparql_cursor_class->get_integer = (gint64 (*)(TrackerSparqlCursor *, gint))tracker_db_cursor_get_int;
+       sparql_cursor_class->get_double = (gdouble (*)(TrackerSparqlCursor *, 
gint))tracker_db_cursor_get_double;
+       sparql_cursor_class->get_boolean = (gboolean (*)(TrackerSparqlCursor *, 
gint))tracker_db_cursor_get_boolean;
 
        g_object_class_override_property (object_class, TRACKER_DB_CURSOR_PROP_N_COLUMNS, "n-columns");
 }
diff --git a/src/libtracker-data/tracker-namespace.c b/src/libtracker-data/tracker-namespace.c
index 618570062..bdd6625a2 100644
--- a/src/libtracker-data/tracker-namespace.c
+++ b/src/libtracker-data/tracker-namespace.c
@@ -66,7 +66,7 @@ namespace_finalize (GObject *object)
        g_free (priv->uri);
        g_free (priv->prefix);
 
-       (G_OBJECT_CLASS (tracker_namespace_parent_class)->finalize) (object);
+       (G_OBJECT_CLASS (tracker_namespace_parent_class)->finalize)(object);
 }
 
 TrackerNamespace *
diff --git a/src/libtracker-data/tracker-ontology.c b/src/libtracker-data/tracker-ontology.c
index edfc14394..e12825f3a 100644
--- a/src/libtracker-data/tracker-ontology.c
+++ b/src/libtracker-data/tracker-ontology.c
@@ -63,7 +63,7 @@ ontology_finalize (GObject *object)
 
        g_free (priv->uri);
 
-       (G_OBJECT_CLASS (tracker_ontology_parent_class)->finalize) (object);
+       (G_OBJECT_CLASS (tracker_ontology_parent_class)->finalize)(object);
 }
 
 TrackerOntology *
diff --git a/src/libtracker-data/tracker-property.c b/src/libtracker-data/tracker-property.c
index 739d360a9..548d9bb46 100644
--- a/src/libtracker-data/tracker-property.c
+++ b/src/libtracker-data/tracker-property.c
@@ -182,7 +182,7 @@ property_finalize (GObject *object)
 
        g_free (priv->default_value);
 
-       (G_OBJECT_CLASS (tracker_property_parent_class)->finalize) (object);
+       (G_OBJECT_CLASS (tracker_property_parent_class)->finalize)(object);
 }
 
 /**
diff --git a/src/libtracker-fts/tracker-fts-config.c b/src/libtracker-fts/tracker-fts-config.c
index 64abf2547..f8b00707b 100644
--- a/src/libtracker-fts/tracker-fts-config.c
+++ b/src/libtracker-fts/tracker-fts-config.c
@@ -217,7 +217,7 @@ config_finalize (GObject *object)
         * future expansion.
         */
 
-       (G_OBJECT_CLASS (tracker_fts_config_parent_class)->finalize) (object);
+       (G_OBJECT_CLASS (tracker_fts_config_parent_class)->finalize)(object);
 }
 
 static void
@@ -225,7 +225,7 @@ config_constructed (GObject *object)
 {
        GSettings *settings;
 
-       (G_OBJECT_CLASS (tracker_fts_config_parent_class)->constructed) (object);
+       (G_OBJECT_CLASS (tracker_fts_config_parent_class)->constructed)(object);
 
        settings = G_SETTINGS (object);
 
diff --git a/src/libtracker-miner/tracker-data-provider.c b/src/libtracker-miner/tracker-data-provider.c
index 20a3396b6..a01946ebe 100644
--- a/src/libtracker-miner/tracker-data-provider.c
+++ b/src/libtracker-miner/tracker-data-provider.c
@@ -109,7 +109,7 @@ tracker_data_provider_begin (TrackerDataProvider    *data_provider,
                return NULL;
        }
 
-       return (* iface->begin) (data_provider, url, attributes, flags, cancellable, error);
+       return (*iface->begin)(data_provider, url, attributes, flags, cancellable, error);
 }
 
 /**
@@ -169,7 +169,7 @@ tracker_data_provider_begin_async (TrackerDataProvider   *data_provider,
                return;
        }
 
-       (* iface->begin_async) (data_provider, url, attributes, flags, io_priority, cancellable, callback, 
user_data);
+       (*iface->begin_async)(data_provider, url, attributes, flags, io_priority, cancellable, callback, 
user_data);
 }
 
 /**
@@ -203,5 +203,5 @@ tracker_data_provider_begin_finish (TrackerDataProvider  *data_provider,
                return NULL;
        }
 
-       return (* iface->begin_finish) (data_provider, result, error);
+       return (*iface->begin_finish)(data_provider, result, error);
 }
diff --git a/src/libtracker-miner/tracker-indexing-tree.c b/src/libtracker-miner/tracker-indexing-tree.c
index 53007931c..6b88821ac 100644
--- a/src/libtracker-miner/tracker-indexing-tree.c
+++ b/src/libtracker-miner/tracker-indexing-tree.c
@@ -442,7 +442,7 @@ find_node_foreach (GNode    *node,
        FindNodeData *data = user_data;
        NodeData *node_data = node->data;
 
-       if ((data->func) (data->file, node_data->file)) {
+       if ((data->func)(data->file, node_data->file)) {
                data->node = node;
                return TRUE;
        }
diff --git a/src/tracker-store/tracker-config.c b/src/tracker-store/tracker-config.c
index 1c3f9c358..883bf2582 100644
--- a/src/tracker-store/tracker-config.c
+++ b/src/tracker-store/tracker-config.c
@@ -143,7 +143,7 @@ config_finalize (GObject *object)
         * future expansion.
         */
 
-       (G_OBJECT_CLASS (tracker_config_parent_class)->finalize) (object);
+       (G_OBJECT_CLASS (tracker_config_parent_class)->finalize)(object);
 }
 
 static void
@@ -151,7 +151,7 @@ config_constructed (GObject *object)
 {
        GSettings *settings;
 
-       (G_OBJECT_CLASS (tracker_config_parent_class)->constructed) (object);
+       (G_OBJECT_CLASS (tracker_config_parent_class)->constructed)(object);
 
        settings = G_SETTINGS (object);
 
diff --git a/src/tracker/tracker-sparql.c b/src/tracker/tracker-sparql.c
index 9cbca3bea..c0532365e 100644
--- a/src/tracker/tracker-sparql.c
+++ b/src/tracker/tracker-sparql.c
@@ -623,7 +623,7 @@ tree_node_find_foreach (GNode    *node,
 
        data = user_data;
 
-       if ((data->func) (data->class, node_data->class)) {
+       if ((data->func)(data->class, node_data->class)) {
                data->node = node;
                return TRUE;
        }


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