aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-device.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-device.cc b/tests/test-device.cc
index 3a7e8d0..388460e 100644
--- a/tests/test-device.cc
+++ b/tests/test-device.cc
@@ -171,7 +171,7 @@ TEST(DeviceTest, BadAccessors)
indicator_power_device_get_object_path (device);
// test that these functions can handle being passed non-device GObjects
- device = g_cancellable_new ();
+ device = reinterpret_cast<IndicatorPowerDevice*>(g_cancellable_new ());
indicator_power_device_get_kind (device);
indicator_power_device_get_time (device);
indicator_power_device_get_icon (device);