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
36a4fdda
Commit
36a4fdda
authored
Oct 29, 2009
by
Oswald Buddenhagen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
less confusing: use the data type which was meant
parent
2eade141
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
share/qtcreator/gdbmacros/gdbmacros.cpp
share/qtcreator/gdbmacros/gdbmacros.cpp
+4
-4
No files found.
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
36a4fdda
...
...
@@ -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
];
...
...
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