[tracker/wip/rishi/tracker-sparql-connection-peer-to-peer: 1/2] libtracker-sparql: Unmark the GDBusConnection parameter as nullable
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/rishi/tracker-sparql-connection-peer-to-peer: 1/2] libtracker-sparql: Unmark the GDBusConnection parameter as nullable
- Date: Wed, 31 Mar 2021 22:28:51 +0000 (UTC)
commit e5b737a31db5be79d139f84fc40eddda7595d3aa
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Mar 31 16:10:13 2021 +0200
libtracker-sparql: Unmark the GDBusConnection parameter as nullable
The constructor for TrackerBusConnection doesn't accept a NULL
GDBusConnection because it's unconditionally used to send D-Bus
messages.
In fact, the public facing tracker_sparql_connection_bus_new_async API
ensures that the GDBusConnection is never NULL.
src/libtracker-sparql/bus/tracker-bus.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-sparql/bus/tracker-bus.vala b/src/libtracker-sparql/bus/tracker-bus.vala
index 985d3f684..796a563e4 100644
--- a/src/libtracker-sparql/bus/tracker-bus.vala
+++ b/src/libtracker-sparql/bus/tracker-bus.vala
@@ -41,7 +41,7 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
get { return object_path; }
}
- public async Connection (string dbus_name, string object_path, DBusConnection? dbus_connection,
Cancellable? cancellable) throws Sparql.Error, IOError, DBusError, GLib.Error {
+ public async Connection (string dbus_name, string object_path, DBusConnection dbus_connection,
Cancellable? cancellable) throws Sparql.Error, IOError, DBusError, GLib.Error {
Object ();
this.sandboxed = false;
this.bus = dbus_connection;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]