Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tobias Hunger
qt-creator
Commits
786a0deb
Commit
786a0deb
authored
Aug 27, 2009
by
hjk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugger: constify the address parameter passed to qDumpObjectData
parent
1a772601
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
share/qtcreator/gdbmacros/gdbmacros.cpp
share/qtcreator/gdbmacros/gdbmacros.cpp
+1
-1
share/qtcreator/gdbmacros/gdbmacros.h
share/qtcreator/gdbmacros/gdbmacros.h
+1
-1
tests/auto/debugger/tst_dumpers.cpp
tests/auto/debugger/tst_dumpers.cpp
+1
-1
No files found.
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
786a0deb
...
...
@@ -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
,
...
...
share/qtcreator/gdbmacros/gdbmacros.h
View file @
786a0deb
...
...
@@ -39,7 +39,7 @@ Q_DECL_EXPORT extern char qDumpOutBuffer[];
#endif
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
);
...
...
tests/auto/debugger/tst_dumpers.cpp
View file @
786a0deb
...
...
@@ -396,7 +396,7 @@ static void testDumper(QByteArray expected0, const void *data, QByteArray outert
outertype
.
data
(),
0
,
"iname"
,
0
,
exp
.
data
(),
0
,
innertype
.
data
(),
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
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment