telepathy-qt: Use quintptr instead of intptr_t.
George Kiagiadakis
gkiagia at kemper.freedesktop.org
Wed May 2 07:46:31 PDT 2012
Module: telepathy-qt
Branch: master
Commit: b2632998374b45af488b6c3a5a6fe330d23bb799
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=b2632998374b45af488b6c3a5a6fe330d23bb799
Author: George Kiagiadakis <george.kiagiadakis at collabora.com>
Date: Wed May 2 17:34:47 2012 +0300
Use quintptr instead of intptr_t.
This fixes FTBFS with gcc-4.7, which requires <stdint.h> to be
included for intptr_t to be available. However, since stdint.h
is not part of the C++03 standard, it is better to use Qt's types.
Reviewed-by: Andre Moreira Magalhaes (andrunko) <andre.magalhaes at collabora.co.uk>
---
TelepathyQt/base-connection.cpp | 2 +-
TelepathyQt/client-registrar.cpp | 2 +-
TelepathyQt/stream-tube-client.cpp | 2 +-
TelepathyQt/stream-tube-server.cpp | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/TelepathyQt/base-connection.cpp b/TelepathyQt/base-connection.cpp
index 45389c5..3897f07 100644
--- a/TelepathyQt/base-connection.cpp
+++ b/TelepathyQt/base-connection.cpp
@@ -154,7 +154,7 @@ QVariantMap BaseConnection::immutableProperties() const
*/
QString BaseConnection::uniqueName() const
{
- return QString(QLatin1String("_%1")).arg((intptr_t) this, 0, 16);
+ return QString(QLatin1String("_%1")).arg((quintptr) this, 0, 16);
}
/**
diff --git a/TelepathyQt/client-registrar.cpp b/TelepathyQt/client-registrar.cpp
index 1b6c1e4..6ed9932 100644
--- a/TelepathyQt/client-registrar.cpp
+++ b/TelepathyQt/client-registrar.cpp
@@ -888,7 +888,7 @@ bool ClientRegistrar::registerClient(const AbstractClientPtr &client,
.arg(mPriv->bus.baseService()
.replace(QLatin1String(":"), QLatin1String("_"))
.replace(QLatin1String("."), QLatin1String("_")))
- .arg((intptr_t) client.data(), 0, 16));
+ .arg((quintptr) client.data(), 0, 16));
}
if (mPriv->services.contains(busName) ||
diff --git a/TelepathyQt/stream-tube-client.cpp b/TelepathyQt/stream-tube-client.cpp
index f22384c..9716a34 100644
--- a/TelepathyQt/stream-tube-client.cpp
+++ b/TelepathyQt/stream-tube-client.cpp
@@ -211,7 +211,7 @@ struct TP_QT_NO_EXPORT StreamTubeClient::Private
.arg(registrar->dbusConnection().baseService()
.replace(QLatin1Char(':'), QLatin1Char('_'))
.replace(QLatin1Char('.'), QLatin1Char('_')))
- .arg((intptr_t) this, 0, 16);
+ .arg((quintptr) this, 0, 16);
}
}
diff --git a/TelepathyQt/stream-tube-server.cpp b/TelepathyQt/stream-tube-server.cpp
index e1791df..8aaaff4 100644
--- a/TelepathyQt/stream-tube-server.cpp
+++ b/TelepathyQt/stream-tube-server.cpp
@@ -307,7 +307,7 @@ struct StreamTubeServer::Private
.arg(registrar->dbusConnection().baseService()
.replace(QLatin1Char(':'), QLatin1Char('_'))
.replace(QLatin1Char('.'), QLatin1Char('_')))
- .arg((intptr_t) this, 0, 16);
+ .arg((quintptr) this, 0, 16);
}
}
More information about the telepathy-commits
mailing list