[Telepathy-commits] [telepathy-qt4/master] Channel: Changed Private member initialization to use within definition initialization.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Tue Jan 27 13:56:54 PST 2009


---
 TelepathyQt4/Client/channel.cpp |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/TelepathyQt4/Client/channel.cpp b/TelepathyQt4/Client/channel.cpp
index acc65a4..03c80b9 100644
--- a/TelepathyQt4/Client/channel.cpp
+++ b/TelepathyQt4/Client/channel.cpp
@@ -126,22 +126,20 @@ struct Channel::Private
 Channel::Private::Private(Channel *parent, Connection *connection)
     : parent(parent),
       baseInterface(new ChannelInterface(parent->dbusConnection(),
-                    parent->busName(), parent->objectPath(), parent))
+                    parent->busName(), parent->objectPath(), parent)),
+      group(0),
+      properties(0),
+      readiness(ReadinessJustCreated),
+      targetHandleType(0),
+      targetHandle(0),
+      groupFlags(0),
+      groupHaveMembers(false),
+      groupAreHandleOwnersAvailable(false),
+      groupIsSelfHandleTracked(false),
+      groupSelfHandle(0)
 {
     debug() << "Creating new Channel";
 
-    group = 0;
-    properties = 0;
-    readiness = ReadinessJustCreated;
-    targetHandleType = 0;
-    targetHandle = 0;
-
-    groupFlags = 0;
-    groupHaveMembers = false;
-    groupAreHandleOwnersAvailable = false;
-    groupIsSelfHandleTracked = false;
-    groupSelfHandle = 0;
-
     debug() << " Connecting to Channel::Closed()";
     parent->connect(baseInterface,
                     SIGNAL(Closed()),
-- 
1.5.6.5




More information about the telepathy-commits mailing list