summaryrefslogtreecommitdiff
path: root/sd/source/ui/remotecontrol/BluetoothServer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/remotecontrol/BluetoothServer.cxx')
-rw-r--r--sd/source/ui/remotecontrol/BluetoothServer.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/sd/source/ui/remotecontrol/BluetoothServer.cxx b/sd/source/ui/remotecontrol/BluetoothServer.cxx
index 1521b1e38583..c859f953e1cd 100644
--- a/sd/source/ui/remotecontrol/BluetoothServer.cxx
+++ b/sd/source/ui/remotecontrol/BluetoothServer.cxx
@@ -123,10 +123,9 @@ bool BluetoothServer::isDiscoverable()
g_error_free( aError );
return false;
}
- GVariant* aVariant = dbus_g_value_build_g_variant ( (GValue*)
- g_hash_table_lookup( aProperties, "Discoverable" ) );
- gboolean aIsDiscoverable = g_variant_get_boolean( aVariant );
- g_free( aVariant );
+
+ gboolean aIsDiscoverable = g_value_get_boolean( (GValue*) g_hash_table_lookup(
+ aProperties, "Discoverable" ) );
g_free( aProperties );
return aIsDiscoverable;
@@ -171,10 +170,10 @@ void BluetoothServer::setDiscoverable( bool aDiscoverable )
g_error_free( aError );
return;
}
- GVariant* aVariant = dbus_g_value_build_g_variant( (GValue*)
- g_hash_table_lookup( aProperties, "Powered" ) );
- gboolean aPowered = g_variant_get_boolean( aVariant );
- g_free( aVariant );
+
+ gboolean aPowered = g_value_get_boolean( (GValue*) g_hash_table_lookup(
+ aProperties, "Powered" ) );
+
g_free( aProperties );
if ( !aPowered )
{