From 5872ea5f62c6eff9d55e50941824f3ade55ec5fd Mon Sep 17 00:00:00 2001 From: George Kiagiadakis Date: Mon, 9 Apr 2012 17:18:54 +0300 Subject: BaseConnection: Fix QString args replacement in registerObject() --- TelepathyQt/base-connection.cpp | 8 ++++---- 1 file 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) { -- cgit v1.2.3