From cd197748b97a3c2aeb4d3470805d3e12b7b46983 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 6 Aug 2013 13:08:06 -0500 Subject: copyediting: don't use 'this.' when it's not needed --- src/service.vala | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/service.vala') diff --git a/src/service.vala b/src/service.vala index 767343f..c51e58f 100644 --- a/src/service.vala +++ b/src/service.vala @@ -35,7 +35,7 @@ public class Service: Object public int run () { - if (this.loop != null) + if (loop != null) { warning ("service is already running"); return Posix.EXIT_FAILURE; @@ -44,12 +44,12 @@ public class Service: Object Bus.own_name (BusType.SESSION, "com.canonical.indicator.bluetooth", BusNameOwnerFlags.NONE, - this.on_bus_acquired, + on_bus_acquired, null, - this.on_name_lost); + on_name_lost); - this.loop = new MainLoop (null, false); - this.loop.run (); + loop = new MainLoop (null, false); + loop.run (); return Posix.EXIT_SUCCESS; } @@ -60,14 +60,14 @@ public class Service: Object var object_path = "/com/canonical/indicator/bluetooth"; try { - connection.export_action_group (object_path, this.actions); + connection.export_action_group (object_path, actions); } catch (Error e) { critical (@"Unable to export actions on $object_path: $(e.message)"); } - this.profiles.for_each ((name,profile) => { + profiles.for_each ((name,profile) => { var path = @"$object_path/$name"; debug (@"exporting menu '$path'"); profile.export_menu (connection, path); @@ -77,6 +77,6 @@ public class Service: Object void on_name_lost (DBusConnection connection, string name) { debug (@"name lost: $name"); - this.loop.quit (); + loop.quit (); } } -- cgit v1.2.3