diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-10-29 18:16:31 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-10-30 17:47:51 +0100 |
commit | 2eade14143fc739c251cf33bb559e6f60c81f5b9 (patch) | |
tree | d92ce72ee2d7784ce7b1b32a3a2ad157494daa24 /share | |
parent | ff72733ccdc2cf29ba22c90178d090e909b1e247 (diff) |
remove superfluous casts
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/gdbmacros/gdbmacros.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp index 11f83c65c9..a2d6c37252 100644 --- a/share/qtcreator/gdbmacros/gdbmacros.cpp +++ b/share/qtcreator/gdbmacros/gdbmacros.cpp @@ -633,7 +633,7 @@ QDumper &QDumper::put(const void *p) if (p) { // Pointer is 'long long' on WIN_64, only static const char *printFormat = sizeof(quintptr) == sizeof(long) ? "0x%lx" : "0x%llx"; - pos += sprintf(outBuffer + pos, printFormat, reinterpret_cast<quintptr>(p)); + pos += sprintf(outBuffer + pos, printFormat, p); } else { pos += sprintf(outBuffer + pos, "<null>"); } @@ -1068,8 +1068,7 @@ static void qDumpQAbstractItem(QDumper &d) mm->p = mm->m = 0; static const char *printFormat = sizeof(quintptr) == sizeof(long) ? "%d,%d,0x%lx,0x%lx" : "%d,%d,0x%llx,0x%llx"; - sscanf(d.templateParameters[0], printFormat, &mm->r, &mm->c, - reinterpret_cast<quintptr*>(&mm->p), reinterpret_cast<quintptr*>(&mm->m)); + sscanf(d.templateParameters[0], printFormat, &mm->r, &mm->c, &mm->p, &mm->m); } const QAbstractItemModel *m = mi.model(); const int rowCount = m->rowCount(mi); |