diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-09-09 04:22:19 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-09-09 04:22:19 +0000 |
commit | 2720a578326d51a49f00e3e4e69d86f8ba23ab0d (patch) | |
tree | 383d4b9a64d0ad6601b00fe30d39d8f72ef9a7a2 /tests/test-notify.cc | |
parent | 4b15eb106da8764c3bd12e746b8f19bf458b7470 (diff) | |
parent | 0c312c160b796c6c724c26e8a1063843c23b9ba3 (diff) | |
download | ayatana-indicator-power-2720a578326d51a49f00e3e4e69d86f8ba23ab0d.tar.gz ayatana-indicator-power-2720a578326d51a49f00e3e4e69d86f8ba23ab0d.tar.bz2 ayatana-indicator-power-2720a578326d51a49f00e3e4e69d86f8ba23ab0d.zip |
Add support for UPower 0.99. Fixes: 1330037
Approved by: Ted Gould, PS Jenkins bot
Diffstat (limited to 'tests/test-notify.cc')
-rw-r--r-- | tests/test-notify.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-notify.cc b/tests/test-notify.cc index b5166a0..d056f3f 100644 --- a/tests/test-notify.cc +++ b/tests/test-notify.cc @@ -131,7 +131,7 @@ protected: bus = g_bus_get_sync(G_BUS_TYPE_SESSION, nullptr, nullptr); g_dbus_connection_set_exit_on_close(bus, FALSE); - g_object_add_weak_pointer(G_OBJECT(bus), (gpointer *)&bus); + g_object_add_weak_pointer(G_OBJECT(bus), reinterpret_cast<gpointer*>(&bus)); notify_init(APP_NAME); } |