summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-03-05 22:25:45 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-03-11 01:50:21 +0000
commitff807df6c9c08444187bd08c36c1bf34b97cdec8 (patch)
tree368f46f35416c8c2e67e2b2268816b06b654d83a
parent3dbb5263290b06b74bb5c0a4e15e86b398a759c2 (diff)
QtDBus: Fix const correctness in old style casts
Found with GCC's -Wcast-qual. Change-Id: Ia0aac2f09e9245339951ffff13c9468642b2db83 Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
-rw-r--r--src/dbus/qdbusintegrator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dbus/qdbusintegrator.cpp b/src/dbus/qdbusintegrator.cpp
index a95d96e526..74d6a11dee 100644
--- a/src/dbus/qdbusintegrator.cpp
+++ b/src/dbus/qdbusintegrator.cpp
@@ -91,7 +91,7 @@ static inline QString dbusInterfaceString()
static inline QDebug operator<<(QDebug dbg, const QThread *th)
{
- dbg.nospace() << "QThread(ptr=" << (void*)th;
+ dbg.nospace() << "QThread(ptr=" << (const void*)th;
if (th && !th->objectName().isEmpty())
dbg.nospace() << ", name=" << th->objectName();
else if (th)
@@ -104,7 +104,7 @@ static inline QDebug operator<<(QDebug dbg, const QThread *th)
static inline QDebug operator<<(QDebug dbg, const QDBusConnectionPrivate *conn)
{
dbg.nospace() << "QDBusConnection("
- << "ptr=" << (void*)conn
+ << "ptr=" << (const void*)conn
<< ", name=" << conn->name
<< ", baseService=" << conn->baseService
<< ", thread=";