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>
This commit is contained in:
parent
3dbb526329
commit
ff807df6c9
@ -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=";
|
||||
|
Loading…
Reference in New Issue
Block a user