aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-05-24 19:27:59 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-05-24 19:27:59 -0500
commit4d1bb110b97fc1e9835d295cfcd30c7125a2380d (patch)
tree3f19e3c3d50023c74bac0c192b54bd8e7f409e6c
parentebf2edadf40205a11998eb37c59cab1f2116d7f5 (diff)
downloadayatana-indicator-power-4d1bb110b97fc1e9835d295cfcd30c7125a2380d.tar.gz
ayatana-indicator-power-4d1bb110b97fc1e9835d295cfcd30c7125a2380d.tar.bz2
ayatana-indicator-power-4d1bb110b97fc1e9835d295cfcd30c7125a2380d.zip
ah, c++ is too smart for the last commit's implicit conversion.
-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);