diff options
author | RJ Ryan <rryan@mixxx.org> | 2014-04-24 17:32:34 -0400 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2014-04-25 10:38:06 -0400 |
commit | 5517d3e4e657354696503e876c023bc1dd6ef549 (patch) | |
tree | cb4210721772aee720828d2666e81c5fc595101d /src/widget/wnumberrate.cpp | |
parent | 93bd3fe48794d3908f3937bdf3edbfcb21b3039e (diff) |
Refactor use of math and other headers across the codebase.
* Delete mathstuff.h and defs.h.
* Move typedefs into util/types.h.
* Move definitions into util/defs.h.
* Use std::min and std::max for math_min and math_max.
* Replace math_clamp with a template function to prevent repeated sub-expressions.
* Add a Result enum for SoundSource::open() and SoundSource::parseHeader().
* Misc. other header-related cleanups.
Diffstat (limited to 'src/widget/wnumberrate.cpp')
-rw-r--r-- | src/widget/wnumberrate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/widget/wnumberrate.cpp b/src/widget/wnumberrate.cpp index ed1aac5e69..0ce0736fdf 100644 --- a/src/widget/wnumberrate.cpp +++ b/src/widget/wnumberrate.cpp @@ -12,10 +12,9 @@ #include "widget/wnumberrate.h" -#include <math.h> - #include "controlobject.h" #include "controlobjectthread.h" +#include "util/math.h" WNumberRate::WNumberRate(const char * group, QWidget * parent) : WNumber(parent) { |