[tracker/functions] libtracker-db: Style fixes
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/functions] libtracker-db: Style fixes
- Date: Fri, 26 Mar 2010 14:24:47 +0000 (UTC)
commit be6769f10fb4bd486b0f3d5dc7b46ddfda9e53b7
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Mar 26 15:24:07 2010 +0100
libtracker-db: Style fixes
src/libtracker-db/tracker-db-interface-sqlite.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-interface-sqlite.c b/src/libtracker-db/tracker-db-interface-sqlite.c
index 4286429..4a6fb0a 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -162,7 +162,7 @@ function_sparql_string_join (sqlite3_context *context,
for (i = 0;i < argc-1; i++) {
if (sqlite3_value_type (argv[argc-1]) == SQLITE_TEXT) {
const gchar *text = sqlite3_value_text (argv[i]);
-
+
if (text != NULL) {
if (!str) {
str = g_string_new (text);
@@ -216,8 +216,6 @@ function_sparql_string_from_filename (sqlite3_context *context,
g_strdelimit (name, "._", ' ');
sqlite3_result_text (context, name, -1, g_free);
-
- return;
}
static void
@@ -253,8 +251,6 @@ function_sparql_cartesian_distance (sqlite3_context *context,
d = R*c;
sqlite3_result_double (context, d);
-
- return;
}
static void
@@ -292,8 +288,6 @@ function_sparql_haversine_distance (sqlite3_context *context,
d = R * c;
sqlite3_result_double (context, d);
-
- return;
}
static void
@@ -360,8 +354,6 @@ function_sparql_regex (sqlite3_context *context,
ret = g_regex_match (regex, text, 0, NULL);
sqlite3_result_int (context, ret);
-
- return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]