aboutsummaryrefslogtreecommitdiff
path: root/tests/indicator-power-service-cmdline-battery.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indicator-power-service-cmdline-battery.cc')
-rw-r--r--tests/indicator-power-service-cmdline-battery.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/indicator-power-service-cmdline-battery.cc b/tests/indicator-power-service-cmdline-battery.cc
index a7a86a1..30ca178 100644
--- a/tests/indicator-power-service-cmdline-battery.cc
+++ b/tests/indicator-power-service-cmdline-battery.cc
@@ -37,7 +37,7 @@ static void
on_name_lost (gpointer instance G_GNUC_UNUSED, gpointer loop)
{
g_message ("exiting: service couldn't acquire or lost ownership of busname");
- g_main_loop_quit ((GMainLoop*)loop);
+ g_main_loop_quit (static_cast<GMainLoop*>(loop));
}
static IndicatorPowerDevice * battery = nullptr;