[tracker/gdbus: 15/43] libtracker-sparql: Fix return type of ModuleInitFunc



commit a291fe6828c75e18a4270a0b6f29bf27b3c37e90
Author: Jürg Billeter <j bitron ch>
Date:   Mon Oct 25 14:16:14 2010 +0200

    libtracker-sparql: Fix return type of ModuleInitFunc

 src/libtracker-bus/tracker-bus.vala        |    2 +-
 src/libtracker-sparql/tracker-backend.vala |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index fad74ad..f7fb0ce 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -374,7 +374,7 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
 	}
 }
 
-public Tracker.Sparql.Connection module_init () {
+public Tracker.Sparql.Connection? module_init () {
 	try {
 		Tracker.Sparql.Connection plugin = new Tracker.Bus.Connection ();
 		return plugin;
diff --git a/src/libtracker-sparql/tracker-backend.vala b/src/libtracker-sparql/tracker-backend.vala
index d4b7df7..832d34b 100644
--- a/src/libtracker-sparql/tracker-backend.vala
+++ b/src/libtracker-sparql/tracker-backend.vala
@@ -35,7 +35,7 @@ class Tracker.Sparql.Backend : Connection {
 		BUS
 	}
 
-	private delegate Tracker.Sparql.Connection ModuleInitFunc ();
+	private delegate Tracker.Sparql.Connection? ModuleInitFunc ();
 
 	public Backend (bool direct_only = false) throws Sparql.Error
 	requires (Module.supported ()) {



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