Skip to content

Commit 2400437

Browse files
committed
1 parent 7e975e6 commit 2400437

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/.clang-tidy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ performance-for-range-copy,
1010
performance-inefficient-vector-operation,
1111
performance-move-const-arg,
1212
performance-no-automatic-move,
13+
performance-type-promotion-in-math-fn
1314
performance-unnecessary-copy-initialization,
1415
readability-const-return-type,
1516
readability-redundant-declaration,

src/qt/trafficgraphwidget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ void TrafficGraphWidget::paintEvent(QPaintEvent *)
6868
painter.drawLine(XMARGIN, YMARGIN + h, width() - XMARGIN, YMARGIN + h);
6969

7070
// decide what order of magnitude we are
71-
int base = floor(log10(fMax));
72-
float val = pow(10.0f, base);
71+
int base = std::floor(std::log10(fMax));
72+
float val = std::pow(10.0f, base);
7373

7474
const QString units = tr("kB/s");
7575
const float yMarginText = 2.0;

0 commit comments

Comments
 (0)