[tracker/wip/rishi/tracker-sparql-connection-peer-to-peer: 30/31] 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: 30/31] libtracker-sparql: Unmark the GDBusConnection parameter as nullable
- Date: Tue, 6 Apr 2021 21:48:12 +0000 (UTC)
commit 4df049b9581c7dfde82769ddc607bdb890bcfdc4
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.
https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/390
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]