From 2eade14143fc739c251cf33bb559e6f60c81f5b9 Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Date: Thu, 29 Oct 2009 18:16:31 +0100
Subject: [PATCH] remove superfluous casts

---
 share/qtcreator/gdbmacros/gdbmacros.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp
index 11f83c65c90..a2d6c372525 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);
-- 
GitLab