Commit 786a0deb authored by hjk's avatar hjk
Browse files

debugger: constify the address parameter passed to qDumpObjectData

parent 1a772601
......@@ -3541,7 +3541,7 @@ extern "C" Q_DECL_EXPORT
void *qDumpObjectData440(
int protocolVersion,
int token,
void *data,
const void *data,
int dumpChildren,
int extraInt0,
int extraInt1,
......@@ -39,7 +39,7 @@ Q_DECL_EXPORT extern char qDumpOutBuffer[];
extern "C" Q_DECL_EXPORT
void *qDumpObjectData440(int protocolVersion, int token, void *data,
void *qDumpObjectData440(int protocolVersion, int token, const void *data,
int dumpChildren, int extraInt0, int extraInt1, int extraInt2, int extraInt3);
......@@ -396,7 +396,7 @@ static void testDumper(QByteArray expected0, const void *data, QByteArray outert, 0, "iname", 0,, 0,, 0, "iname", 0);
//qDebug() << "FIXME qDumpObjectData440 signature to use const void *";
void *res = qDumpObjectData440(2, 42, const_cast<void *>(data), dumpChildren,
void *res = qDumpObjectData440(2, 42, data, dumpChildren,
extraInt0, extraInt1, extraInt2, extraInt3);
QString expected(expected0);
char buf[100];
Supports Markdown
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