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
2eade141
Commit
2eade141
authored
Oct 29, 2009
by
Oswald Buddenhagen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove superfluous casts
parent
ff72733c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
share/qtcreator/gdbmacros/gdbmacros.cpp
share/qtcreator/gdbmacros/gdbmacros.cpp
+2
-3
No files found.
share/qtcreator/gdbmacros/gdbmacros.cpp
View file @
2eade141
...
...
@@ -633,7 +633,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"
;
pos
+=
sprintf
(
outBuffer
+
pos
,
printFormat
,
reinterpret_cast
<
quintptr
>
(
p
)
);
pos
+=
sprintf
(
outBuffer
+
pos
,
printFormat
,
p
);
}
else
{
pos
+=
sprintf
(
outBuffer
+
pos
,
"<null>"
);
}
...
...
@@ -1068,8 +1068,7 @@ static void qDumpQAbstractItem(QDumper &d)
mm
->
p
=
mm
->
m
=
0
;
static
const
char
*
printFormat
=
sizeof
(
quintptr
)
==
sizeof
(
long
)
?
"%d,%d,0x%lx,0x%lx"
:
"%d,%d,0x%llx,0x%llx"
;
sscanf
(
d
.
templateParameters
[
0
],
printFormat
,
&
mm
->
r
,
&
mm
->
c
,
reinterpret_cast
<
quintptr
*>
(
&
mm
->
p
),
reinterpret_cast
<
quintptr
*>
(
&
mm
->
m
));
sscanf
(
d
.
templateParameters
[
0
],
printFormat
,
&
mm
->
r
,
&
mm
->
c
,
&
mm
->
p
,
&
mm
->
m
);
}
const
QAbstractItemModel
*
m
=
mi
.
model
();
const
int
rowCount
=
m
->
rowCount
(
mi
);
...
...
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