summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2012-04-09 17:18:54 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2012-04-09 17:58:07 +0300
commit5872ea5f62c6eff9d55e50941824f3ade55ec5fd (patch)
tree5dc5b08f15194df26f372fe0ef995c9719ad62ef
parentdf0621ea1b0ae7896edf69087790b4cd750d5ce0 (diff)
BaseConnection: Fix QString args replacement in registerObject()
-rw-r--r--TelepathyQt/base-connection.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/TelepathyQt/base-connection.cpp b/TelepathyQt/base-connection.cpp
index c3b93b20..45389c58 100644
--- a/TelepathyQt/base-connection.cpp
+++ b/TelepathyQt/base-connection.cpp
@@ -187,10 +187,10 @@ bool BaseConnection::registerObject(DBusError *error)
QString escapedProtocolName = mPriv->protocolName;
escapedProtocolName.replace(QLatin1Char('-'), QLatin1Char('_'));
QString name = uniqueName();
- QString busName = QString(QLatin1String("%s.%s.%s.%s"))
- .arg(TP_QT_CONNECTION_BUS_NAME_BASE).arg(mPriv->cmName).arg(escapedProtocolName).arg(name);
- QString objectPath = QString(QLatin1String("%s/%s/%s/%s"))
- .arg(TP_QT_CONNECTION_OBJECT_PATH_BASE).arg(mPriv->cmName).arg(escapedProtocolName).arg(name);
+ 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"))
+ .arg(TP_QT_CONNECTION_OBJECT_PATH_BASE, mPriv->cmName, escapedProtocolName, name);
DBusError _error;
bool ret = registerObject(busName, objectPath, &_error);
if (!ret && error) {