[Telepathy] [PATCH 2/3] fix busName and objectPath in BaseConnection

Maksim Melnikau maxposedon at gmail.com
Sun Jan 6 11:12:11 PST 2013


TP_QT_CONNECTION_BUS_NAME_BASE and TP_QT_CONNECTION_OBJECT_PATH_BASE
already have separator at the end

Signed-off-by: Maksim Melnikau <maxposedon at gmail.com>
---
 TelepathyQt/base-connection.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt/base-connection.cpp b/TelepathyQt/base-connection.cpp
index e6bea0f..12b26c1 100644
--- a/TelepathyQt/base-connection.cpp
+++ b/TelepathyQt/base-connection.cpp
@@ -187,9 +187,9 @@ bool BaseConnection::registerObject(DBusError *error)
     QString escapedProtocolName = mPriv->protocolName;
     escapedProtocolName.replace(QLatin1Char('-'), QLatin1Char('_'));
     QString name = uniqueName();
-    QString busName = QString(QLatin1String("%1.%2.%3.%4"))
+    QString busName = QString(QLatin1String("%1%2.%3.%4"))
         .arg(TP_QT_CONNECTION_BUS_NAME_BASE, mPriv->cmName, escapedProtocolName, name);
-    QString objectPath = QString(QLatin1String("%1/%2/%3/%4"))
+    QString objectPath = QString(QLatin1String("%1%2/%3/%4"))
         .arg(TP_QT_CONNECTION_OBJECT_PATH_BASE, mPriv->cmName, escapedProtocolName, name);
     DBusError _error;
     bool ret = registerObject(busName, objectPath, &_error);
-- 
1.8.1



More information about the telepathy mailing list