Commit fe8110ed authored by David Schulz's avatar David Schulz
Browse files

CdbExt: Workaround GetTypeSize issue...



... for QString and QByteArray.

Task-number: QTCREATORBUG-10679

Change-Id: Id07cad2715560f772374c1b4bcf3291338908f30
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 647c65c9
......@@ -1628,9 +1628,11 @@ static unsigned qSharedDataSize(const SymbolGroupValueContext &ctx)
}
/* Return the size of a QString */
static unsigned qStringSize(const SymbolGroupValueContext &ctx)
static unsigned qStringSize(const SymbolGroupValueContext &/*ctx*/)
{
static const unsigned size = SymbolGroupValue::sizeOf(QtInfo::get(ctx).prependQtCoreModule("QString").c_str());
// static const unsigned size = SymbolGroupValue::sizeOf(QtInfo::get(ctx).prependQtCoreModule("QString").c_str());
// FIXME: Workaround the issue that GetTypeSize returns strange values;
static const unsigned size = SymbolGroupValue::pointerSize();
return size;
}
......@@ -1642,9 +1644,11 @@ static unsigned qListSize(const SymbolGroupValueContext &ctx)
}
/* Return the size of a QByteArray */
static unsigned qByteArraySize(const SymbolGroupValueContext &ctx)
static unsigned qByteArraySize(const SymbolGroupValueContext &/*ctx*/)
{
static const unsigned size = SymbolGroupValue::sizeOf(QtInfo::get(ctx).prependQtCoreModule("QByteArray").c_str());
// static const unsigned size = SymbolGroupValue::sizeOf(QtInfo::get(ctx).prependQtCoreModule("QByteArray").c_str());
// FIXME: Workaround the issue that GetTypeSize returns strange values;
static const unsigned size = SymbolGroupValue::pointerSize();
return size;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment