Commit 4e281167 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger[CDB]: Adapt SharedLib-Dumpers to new std::vector.

Reviewed-by: hjk
parent 18931181
......@@ -3457,7 +3457,11 @@ static void qDumpStdVector(QDumper &d)
#ifdef Q_CC_MSVC
// Pointers are at end of the structure
const char * vcp = static_cast<const char *>(d.data);
# if _MSC_VER >= 1600 // VS2010 onwards: Beginning of structure + base class containing pointer
const VectorImpl *v = reinterpret_cast<const VectorImpl *>(vcp + sizeof(void*));
# else // pre VS2010: End of structure
const VectorImpl *v = reinterpret_cast<const VectorImpl *>(vcp + sizeof(std::vector<int>) - sizeof(VectorImpl));
# endif // _MSC_VER
#else
const VectorImpl *v = static_cast<const VectorImpl *>(d.data);
#endif
......
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