[gnome-bluetooth] lib: Simplify instantiation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Simplify instantiation
- Date: Wed, 28 Sep 2011 13:49:33 +0000 (UTC)
commit 585716ed610129d52387976a610ca88fceb39a42
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 28 12:35:03 2011 +0100
lib: Simplify instantiation
lib/bluetooth-agent.c | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/lib/bluetooth-agent.c b/lib/bluetooth-agent.c
index b0e7ffc..4761616 100644
--- a/lib/bluetooth-agent.c
+++ b/lib/bluetooth-agent.c
@@ -290,15 +290,10 @@ static void bluetooth_agent_class_init(BluetoothAgentClass *klass)
object_class->finalize = bluetooth_agent_finalize;
}
-BluetoothAgent *bluetooth_agent_new(void)
+BluetoothAgent *
+bluetooth_agent_new (void)
{
- BluetoothAgent *agent;
-
- agent = BLUETOOTH_AGENT(g_object_new(BLUETOOTH_TYPE_AGENT, NULL));
-
- DBG("agent %p", agent);
-
- return agent;
+ return BLUETOOTH_AGENT (g_object_new (BLUETOOTH_TYPE_AGENT, NULL));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]