[Telepathy-commits] [telepathy-qt4/master] Removed parent member from ConnectionManager::Private (not needed).
Andre Moreira Magalhaes (andrunko)
andre.magalhaes at collabora.co.uk
Tue Jan 6 12:06:58 PST 2009
---
TelepathyQt4/Client/connection-manager-internal.h | 1 -
TelepathyQt4/Client/connection-manager.cpp | 10 +++++-----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/TelepathyQt4/Client/connection-manager-internal.h b/TelepathyQt4/Client/connection-manager-internal.h
index 274025f..ce03592 100644
--- a/TelepathyQt4/Client/connection-manager-internal.h
+++ b/TelepathyQt4/Client/connection-manager-internal.h
@@ -59,7 +59,6 @@ public:
class PendingReady;
class PendingNames;
- ConnectionManager *parent;
ConnectionManagerInterface* baseInterface;
QString name;
bool ready;
diff --git a/TelepathyQt4/Client/connection-manager.cpp b/TelepathyQt4/Client/connection-manager.cpp
index cb22fc4..dedc58c 100644
--- a/TelepathyQt4/Client/connection-manager.cpp
+++ b/TelepathyQt4/Client/connection-manager.cpp
@@ -227,7 +227,6 @@ void ConnectionManager::Private::PendingNames::parseResult(const QStringList &na
ConnectionManager::Private::Private(const QString &name, ConnectionManager *parent)
: QObject(parent),
- parent(parent),
baseInterface(new ConnectionManagerInterface(parent->dbusConnection(),
parent->busName(), parent->objectPath(), parent)),
name(name),
@@ -321,9 +320,10 @@ void ConnectionManager::Private::callReadConfig()
void ConnectionManager::Private::callGetAll()
{
debug() << "Calling Properties::GetAll(ConnectionManager)";
+ ConnectionManager *cm = static_cast<ConnectionManager*>(parent());
QDBusPendingCallWatcher* watcher = new QDBusPendingCallWatcher(
- parent->propertiesInterface()->GetAll(
- TELEPATHY_INTERFACE_CONNECTION_MANAGER), parent);
+ cm->propertiesInterface()->GetAll(
+ TELEPATHY_INTERFACE_CONNECTION_MANAGER), this);
connect(watcher,
SIGNAL(finished(QDBusPendingCallWatcher*)),
SLOT(onGetAllConnectionManagerReturn(QDBusPendingCallWatcher*)));
@@ -337,7 +337,7 @@ void ConnectionManager::Private::callGetParameters()
debug() << "Calling ConnectionManager::GetParameters(" <<
protocol << ")";
QDBusPendingCallWatcher* watcher = new QDBusPendingCallWatcher(
- baseInterface->GetParameters(protocol), parent);
+ baseInterface->GetParameters(protocol), this);
connect(watcher,
SIGNAL(finished(QDBusPendingCallWatcher*)),
SLOT(onGetParametersReturn(QDBusPendingCallWatcher*)));
@@ -348,7 +348,7 @@ void ConnectionManager::Private::callListProtocols()
{
debug() << "Calling ConnectionManager::ListProtocols";
QDBusPendingCallWatcher* watcher = new QDBusPendingCallWatcher(
- baseInterface->ListProtocols(), parent);
+ baseInterface->ListProtocols(), this);
connect(watcher,
SIGNAL(finished(QDBusPendingCallWatcher*)),
SLOT(onListProtocolsReturn(QDBusPendingCallWatcher*)));
--
1.5.6.5
More information about the Telepathy-commits
mailing list