[tracker/wip/carlosg/compiler-warnings: 8/10] tracker-store: Make D-Bus methods specify they may return errors
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/compiler-warnings: 8/10] tracker-store: Make D-Bus methods specify they may return errors
- Date: Fri, 12 Oct 2018 10:21:44 +0000 (UTC)
commit 40d6a2097206d685ad90768e53cc06d399d93989
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Oct 1 01:24:16 2018 +0200
tracker-store: Make D-Bus methods specify they may return errors
Modern vala recommends this.
src/tracker-store/tracker-resources.vala | 4 ++--
src/tracker-store/tracker-status.vala | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-store/tracker-resources.vala b/src/tracker-store/tracker-resources.vala
index 5cfab8bb2..bb121805f 100644
--- a/src/tracker-store/tracker-resources.vala
+++ b/src/tracker-store/tracker-resources.vala
@@ -165,7 +165,7 @@ public class Tracker.Resources : Object {
}
}
- public void sync (BusName sender) {
+ public void sync (BusName sender) throws Error {
var request = DBusRequest.begin (sender, "Resources.Sync");
var data_manager = Tracker.Main.get_data_manager ();
var data = data_manager.get_data ();
@@ -199,7 +199,7 @@ public class Tracker.Resources : Object {
}
}
- public void batch_commit () {
+ public void batch_commit () throws Error {
/* no longer needed, just return */
}
diff --git a/src/tracker-store/tracker-status.vala b/src/tracker-store/tracker-status.vala
index 002760f19..d0de446ae 100644
--- a/src/tracker-store/tracker-status.vala
+++ b/src/tracker-store/tracker-status.vala
@@ -101,11 +101,11 @@ public class Tracker.Status : Object {
return callback;
}
- public double get_progress () {
+ public double get_progress () throws Error {
return this._progress;
}
- public string get_status () {
+ public string get_status () throws Error {
return this.status;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]