[telepathy-qt4/master] ClientRegistrar: Use hex instead of decimal to format Client unique bus name.

Andre Moreira Magalhaes (andrunko) andre.magalhaes at collabora.co.uk
Tue May 19 06:20:20 PDT 2009


---
 TelepathyQt4/client-registrar.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/TelepathyQt4/client-registrar.cpp b/TelepathyQt4/client-registrar.cpp
index a2abec9..ca615b0 100644
--- a/TelepathyQt4/client-registrar.cpp
+++ b/TelepathyQt4/client-registrar.cpp
@@ -473,11 +473,11 @@ bool ClientRegistrar::registerClient(const AbstractClientPtr &client,
     if (unique) {
         // o.f.T.Client.<unique_bus_name>_<pointer> should be enough to identify
         // an unique identifier
-        busName.append(QString(".%1._%2")
+        busName.append(QString(".%1.x%2")
                 .arg(mPriv->bus.baseService()
                     .replace(':', '_')
                     .replace('.', "._"))
-                .arg((intptr_t) client.data()));
+                .arg((intptr_t) client.data(), 0, 16));
     }
 
     if (mPriv->services.contains(busName) ||
-- 
1.5.6.5




More information about the telepathy-commits mailing list