summaryrefslogtreecommitdiff
path: root/src/plugins/vcsbase/baseannotationhighlighter.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2008-12-03 10:16:16 +0100
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2008-12-03 10:16:16 +0100
commit0fcb8131bd6ad756870de43289adf7a8bbf878a6 (patch)
tree108a3770de245149ae0fb4411cd37688b218a214 /src/plugins/vcsbase/baseannotationhighlighter.cpp
parenta22df6cf50af05097594cff5c6ef0e12636454c5 (diff)
downloadqt-creator-0fcb8131bd6ad756870de43289adf7a8bbf878a6.tar.gz
Compile on MSVC 2003
Help the compiler pick the correct overload for the call to pow().
Diffstat (limited to 'src/plugins/vcsbase/baseannotationhighlighter.cpp')
-rw-r--r--src/plugins/vcsbase/baseannotationhighlighter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/vcsbase/baseannotationhighlighter.cpp b/src/plugins/vcsbase/baseannotationhighlighter.cpp
index 5b02bc9ea1..167c1d7d31 100644
--- a/src/plugins/vcsbase/baseannotationhighlighter.cpp
+++ b/src/plugins/vcsbase/baseannotationhighlighter.cpp
@@ -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)