Commit 0fcb8131 authored by Eskil Abrahamsen Blomfeldt's avatar Eskil Abrahamsen Blomfeldt
Browse files

Compile on MSVC 2003

Help the compiler pick the correct overload for the call to pow().
parent a22df6cf
...@@ -69,7 +69,7 @@ void BaseAnnotationHighlighter::setChangeNumbers(const ChangeNumbers &changeNumb ...@@ -69,7 +69,7 @@ void BaseAnnotationHighlighter::setChangeNumbers(const ChangeNumbers &changeNumb
// Assign a color gradient to annotation change numbers. Give // Assign a color gradient to annotation change numbers. Give
// each change number a unique color. // each change number a unique color.
const double oneThird = 1.0 / 3.0; 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; QList<QColor> colors;
const int factor = 255 / step; const int factor = 255 / step;
for (int i=0; i<step; ++i) for (int i=0; i<step; ++i)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment