[Telepathy-commits] [telepathy-qt4/master] Channel: Moved baseInterface initialization to Private class itself.
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue Jan 27 13:54:16 PST 2009
---
TelepathyQt4/Client/channel.cpp | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/TelepathyQt4/Client/channel.cpp b/TelepathyQt4/Client/channel.cpp
index 6dfe998..acc65a4 100644
--- a/TelepathyQt4/Client/channel.cpp
+++ b/TelepathyQt4/Client/channel.cpp
@@ -124,11 +124,12 @@ struct Channel::Private
};
Channel::Private::Private(Channel *parent, Connection *connection)
- : parent(parent)
+ : parent(parent),
+ baseInterface(new ChannelInterface(parent->dbusConnection(),
+ parent->busName(), parent->objectPath(), parent))
{
debug() << "Creating new Channel";
- baseInterface = 0;
group = 0;
properties = 0;
readiness = ReadinessJustCreated;
@@ -541,9 +542,6 @@ Channel::Channel(Connection *connection,
OptionalInterfaceFactory<Channel>(this),
mPriv(new Private(this, connection))
{
- mPriv->baseInterface = new ChannelInterface(this->dbusConnection(),
- this->busName(), this->objectPath(), this);
-
// Introspection continued here so mPriv will be initialized (unlike if we
// continued it from the Private constructor)
mPriv->continueIntrospection();
--
1.5.6.5
More information about the telepathy-commits
mailing list