Commit 515e802a authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Use C++ <cmath> instead of <math.h>


Including math.h can pollute the default namespace, and break
some compilers if cmath versions of the method are declared as using.

Switching to C++ math functions also greatly simplifies handling of
float qreal as C++ automatically chooses the right method.

[ChangeLog][QtCore][QtMath] qmath.h no longer includes math.h, so any
sources depending on that indirect inclusion may fail to build.

Change-Id: I4d0e331dafba354ec05dc5052e61ef4ff8d387fe
Reviewed-by: default avatarRafael Roquetto <rafael.roquetto@kdab.com>
Showing with 81 additions and 195 deletions
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