diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-10-29 18:24:08 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-10-30 17:47:51 +0100 |
commit | 36a4fddaf04031c105a8c77c20c402018f365994 (patch) | |
tree | fb704fb09c4cfa731d65869dad5f5c8831f93c34 /share | |
parent | 2eade14143fc739c251cf33bb559e6f60c81f5b9 (diff) |
less confusing: use the data type which was meant
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/gdbmacros/gdbmacros.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp index a2d6c37252..bbc6862202 100644 --- a/share/qtcreator/gdbmacros/gdbmacros.cpp +++ b/share/qtcreator/gdbmacros/gdbmacros.cpp @@ -632,7 +632,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"; + static const char *printFormat = sizeof(void *) == sizeof(long) ? "0x%lx" : "0x%llx"; pos += sprintf(outBuffer + pos, printFormat, p); } else { pos += sprintf(outBuffer + pos, "<null>"); @@ -1066,7 +1066,7 @@ static void qDumpQAbstractItem(QDumper &d) ModelIndex *mm = reinterpret_cast<ModelIndex *>(&mi); mm->r = mm->c = 0; mm->p = mm->m = 0; - static const char *printFormat = sizeof(quintptr) == sizeof(long) ? + static const char *printFormat = sizeof(void *) == sizeof(long) ? "%d,%d,0x%lx,0x%lx" : "%d,%d,0x%llx,0x%llx"; sscanf(d.templateParameters[0], printFormat, &mm->r, &mm->c, &mm->p, &mm->m); } @@ -2145,10 +2145,10 @@ static void qDumpQVariantHelper(const QVariant *v, QString *value, break; #endif default: { - static const char *qTypeFormat = sizeof(quintptr) == sizeof(long) ? + static const char *qTypeFormat = sizeof(void *) == sizeof(long) ? "'"NS"%s "NS"qVariantValue<"NS"%s >'(*('"NS"QVariant'*)0x%lx)" : "'"NS"%s "NS"qVariantValue<"NS"%s >'(*('"NS"QVariant'*)0x%llx)"; - static const char *nonQTypeFormat = sizeof(quintptr) == sizeof(long) ? + static const char *nonQTypeFormat = sizeof(void *) == sizeof(long) ? "'%s "NS"qVariantValue<%s >'(*('"NS"QVariant'*)0x%lx)" : "'%s "NS"qVariantValue<%s >'(*('"NS"QVariant'*)0x%llx)"; char buf[1000]; |