Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
0fcb8131
Commit
0fcb8131
authored
Dec 03, 2008
by
Eskil Abrahamsen Blomfeldt
Browse files
Compile on MSVC 2003
Help the compiler pick the correct overload for the call to pow().
parent
a22df6cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/vcsbase/baseannotationhighlighter.cpp
View file @
0fcb8131
...
...
@@ -69,7 +69,7 @@ void BaseAnnotationHighlighter::setChangeNumbers(const ChangeNumbers &changeNumb
// Assign a color gradient to annotation change numbers. Give
// each change number a unique color.
const
double
oneThird
=
1.0
/
3.0
;
const
int
step
=
qRound
(
ceil
(
pow
(
changeNumbers
.
count
(),
oneThird
)));
const
int
step
=
qRound
(
ceil
(
pow
(
double
(
changeNumbers
.
count
()
)
,
oneThird
)));
QList
<
QColor
>
colors
;
const
int
factor
=
255
/
step
;
for
(
int
i
=
0
;
i
<
step
;
++
i
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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